} else {
# Clear text.
- my $pid = open3(\*GPGIN, \*GPGOUT, \*GPGERR, "gpg --batch");
+ my $pid = open3(\*GPGIN, \*GPGOUT, \*GPGERR, "gpg --batch --verify");
# Feed it the mail.
print GPGIN $entity->bodyhandle->as_string;
# And grab what it has to say.
@GPGERROR=<GPGERR>;
@COMMANDS=<GPGOUT>;
+ @COMMANDS = split /\n/,$entity->bodyhandle->as_string;
close GPGERR;
close GPGOUT;
waitpid $pid, 0;
chomp;
if (/Signature made (.*) using.*ID (.*)$/) {
$sigtime = str2time($1);
- $gpguser=$2;
+ $gpguser=$2;
} elsif (/error/) {
$gpggood = 0;
print REPLY "Some errors ocurred\n";