[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#933679: qpsmtpd: No Received header if received_hook configured



On 2019-08-01 20:58:39 +0200, Peter J. Holzer wrote:
> I will send a patch shortly.

Attached.

        hp

-- 
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp@hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>
Description: Fix handling of received_line hook
 The received line(s) returned by the hook must be prepended to the
 header, not returned to the caller.
Author: Peter J. Holzer <hjp@hjp.at>
Bug-Debian: http://bugs.debian.org/933679
Index: qpsmtpd-0.94/lib/Qpsmtpd/SMTP.pm
===================================================================
--- qpsmtpd-0.94.orig/lib/Qpsmtpd/SMTP.pm
+++ qpsmtpd-0.94/lib/Qpsmtpd/SMTP.pm
@@ -870,7 +870,7 @@ sub received_line {
         die "YIELD not supported for received_line hook";
     }
     elsif ($rc == OK) {
-        return join("\n", @received);
+        $header_str = join("\n", @received);
     }
     else {    # assume $rc == DECLINED
         $header_str = 

Attachment: signature.asc
Description: PGP signature


Reply to: