From: Geoffrey Thomas Date: Wed, 20 Jan 2010 05:34:21 +0000 (-0500) Subject: barnowl/zcrypt.pl: Pass the unencrypted message to zcrypt X-Git-Url: https://sipb.mit.edu/gitweb.cgi/snippets/.git/commitdiff_plain/c0df155c9b3c4287ea11289f71f63ae7ebb1f360 barnowl/zcrypt.pl: Pass the unencrypted message to zcrypt If barnowl has already decrypted a message, :decrypt should still work. Signed-off-by: Geoffrey Thomas --- diff --git a/barnowl/zcrypt.pl b/barnowl/zcrypt.pl index 75d73a7..cf864fb 100644 --- a/barnowl/zcrypt.pl +++ b/barnowl/zcrypt.pl @@ -25,7 +25,7 @@ BarnOwl::new_command(decrypt => sub { my ($zo, $zi); my $pid = open2($zo, $zi, '/mit/outland/bin/zcrypt', '-D', @args) or die "Couldn't launch zcrypt\n"; my $decrypted; - print $zi $msg->body . "\n"; + print $zi $msg->fields[1] . "\n"; close $zi; while (<$zo>) { chomp;