From 2191c0f53cfbc8012b9fa5a820fed3e3026f6cfd Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 20 Jun 2020 15:46:42 +0200 Subject: masterkey.pl: Attach copy of signed key Signed-off-by: Florian Pritz --- masterkey.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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>"); -- cgit v1.2.3-24-g4f1b