1 |
diff -Nur -x '*.orig' -x '*.rej' qpsmtpd-0.31.1/plugins/queue/smtp-forward mezzanine_patched_qpsmtpd-0.31.1/plugins/queue/smtp-forward |
2 |
--- qpsmtpd-0.31.1/plugins/queue/smtp-forward 2006-03-02 19:05:57.000000000 -0500 |
3 |
+++ mezzanine_patched_qpsmtpd-0.31.1/plugins/queue/smtp-forward 2006-03-02 19:05:09.000000000 -0500 |
4 |
@@ -116,16 +116,13 @@ |
5 |
|
6 |
$smtp->dataend(); |
7 |
$rc = $smtp->code; |
8 |
- $message = $smtp->message; |
9 |
- my $queue_message; |
10 |
- chomp($message); |
11 |
+ my @messages = $smtp->message; |
12 |
+ my $queue_message = $messages[$#messages]; |
13 |
|
14 |
if ($rc =~ m/^4\d{2}$/ ) { |
15 |
- return(DENYSOFT, "Unable to queue message ($message)"); |
16 |
+ return(DENYSOFT, "Unable to queue message ($queue_message)"); |
17 |
} elsif ($rc =~ m/^5\d{2}$/ ) { |
18 |
- return(DENY, "Unable to queue message ($message)"); |
19 |
- } else { |
20 |
- $queue_message = $message; |
21 |
+ return(DENY, "Unable to queue message ($queue_message)"); |
22 |
} |
23 |
|
24 |
$smtp->quit(); |