Action encrypt sends mail to rest of recipents that have key, dropping only that ones

that lacks key.
master
cranix 2017-02-28 18:01:17 +01:00
parent 9e01dec269
commit b1ffa9f546
1 changed files with 2 additions and 5 deletions

7
kuvert
View File

@ -518,11 +518,8 @@ sub process_file
#Check if mail needs to be dropped due to
#encrypt option being specyfied and lack of key
if (grep($_ eq "drop",values(%actions)))
{
return "Dropping mail due to lack of encryption key. Mail would be sent to: @rawrecips";
}
%actions = grep {$_ ne 'drop'} %actions;
my ($orig_header,$cryptoin);
# prepare various stuff we need only when encrypting or signing
if(grep($_ ne "none",values(%actions)))