summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmasterkey.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/masterkey.pl b/masterkey.pl
index d532dfb..fe9b7d6 100755
--- a/masterkey.pl
+++ b/masterkey.pl
@@ -67,6 +67,8 @@ on behalf of {$sender_name} ({$sender_key})
Your GPG key ({$recipient_key})
has been successfully signed by an Arch Linux master key.
+A copy of your signed key is attached to this message.
+
Best Regards,
SAMKIVS (Simple Automated Master Key Identity Verification System)
on behalf of {$sender_name} ({$sender_key})
@@ -203,6 +205,16 @@ fun build_email($command, $sender_key, $sender_address_regex, $recipient_key, $r
Data => [$body],
);
+ if ($command eq 'confirmation') {
+ my $recipient_key_data = `gpg --armor --export $recipient_key`;
+ $msg->attach(
+ Data => $recipient_key_data,
+ Filename => "$recipient_key-signed.asc",
+ Encoding => 'quoted-printable',
+ );
+ }
+
+
$msg->add("Message-ID", Email::MessageID->new->in_brackets);
$msg->replace("Return-Path", "<$sender_addr>");