summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcranix <cranix@hackerspace.pl>2017-02-28 18:01:17 +0100
committercranix <cranix@hackerspace.pl>2017-02-28 18:01:17 +0100
commitb1ffa9f54643378193b62e863da8054796f5e7df (patch)
treebd753d57bda1f1b9a3e0ddae211323b83400fee0
parent9e01dec26989c63d1cb50e5620c7e6891a26087b (diff)
downloadkuvert-b1ffa9f54643378193b62e863da8054796f5e7df.tar.gz
kuvert-b1ffa9f54643378193b62e863da8054796f5e7df.tar.bz2
kuvert-b1ffa9f54643378193b62e863da8054796f5e7df.tar.xz
kuvert-b1ffa9f54643378193b62e863da8054796f5e7df.zip
Action encrypt sends mail to rest of recipents that have key, dropping only that ones
that lacks key.
-rwxr-xr-xkuvert7
1 files changed, 2 insertions, 5 deletions
diff --git a/kuvert b/kuvert
index 4a8394f..d0892f0 100755
--- a/kuvert
+++ b/kuvert
@@ -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)))