From c0df155c9b3c4287ea11289f71f63ae7ebb1f360 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Wed, 20 Jan 2010 00:34:21 -0500 Subject: [PATCH] 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 --- barnowl/zcrypt.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.0