| 1 |
Description: Fix the received_line hook |
| 2 |
When the received_line hook returned a result, the calling method |
| 3 |
returned the new line instead of adding it to the header (see Debian |
| 4 |
bug #933679) |
| 5 |
Author: Peter J. Holzer <[email protected]> |
| 6 |
Last-Update: 2023-08-20 |
| 7 |
--- |
| 8 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 9 |
--- a/lib/Qpsmtpd/SMTP.pm |
| 10 |
+++ b/lib/Qpsmtpd/SMTP.pm |
| 11 |
@@ -870,7 +870,7 @@ |
| 12 |
die "YIELD not supported for received_line hook"; |
| 13 |
} |
| 14 |
elsif ($rc == OK) { |
| 15 |
- return join("\n", @received); |
| 16 |
+ $header_str = join("\n", @received); |
| 17 |
} |
| 18 |
else { # assume $rc == DECLINED |
| 19 |
$header_str = |