Skip to content

Commit

Permalink
"chomp" DEBUG output - for logging/file
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@956 958fd67b-6ff1-0310-b445-bb7760255be9
  • Loading branch information
vetinari authored and abh committed Nov 4, 2008
1 parent 26f6891 commit e7bcc3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/spamassassin
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ sub hook_data_post { # check_spam
$self->log(LOGDEBUG, "check_spam: finished sending to spamd");
my $line0 = <SPAMD>; # get the first protocol lines out
if ($line0) {
$line0 =~ s/\r?\n$//;
$self->log(LOGDEBUG, "check_spam: spamd: $line0");

$self->_cleanup_spam_header($transaction, 'X-Spam-Check-By');
Expand All @@ -178,6 +179,7 @@ sub hook_data_post { # check_spam

my ($flag, $hits, $required);
while (<SPAMD>) {
s/\r?\n$//;
$self->log(LOGDEBUG, "check_spam: spamd: $_");
#warn "GOT FROM SPAMD1: $_";
last unless m/\S/;
Expand Down

0 comments on commit e7bcc3f

Please sign in to comment.