fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] 6.1.0: reject after DATA phase loses error message

2002-10-07 22:56:18
Quoting from Matthias Andree's mail on Mon, Oct 07, 2002 at 11:24:25PM +0200:
It looks as though transact.c would discard recipient information at
around line #1030, but that without the recipient information, the
error response would not be presented in part #2 of the 3-part bounce.

Please try this patch (untested):

================================================================
diff -Naur fetchmail-6.1.0.orig/transact.c fetchmail-6.1.0/transact.c
--- fetchmail-6.1.0.orig/transact.c     Mon Oct  7 15:41:40 2002
+++ fetchmail-6.1.0/transact.c  Tue Oct  8 11:01:57 2002
@@ -389,6 +389,7 @@
      */
     if (msgblk.headers)
        free(msgblk.headers);
+    free_str_list(&msgblk.recipients);
 
     /* initially, no message ID */
     if (ctl->thisid)
@@ -1240,7 +1241,7 @@
     stuffline(ctl, buf);
 
 /*    free(msgblk.headers); */
-    free_str_list(&msgblk.recipients);
+/*    free_str_list(&msgblk.recipients); */
     return(headers_ok ? PS_SUCCESS : PS_TRUNCATED);
 }
 
================================================================

Sunil Shetye.

<Prev in Thread] Current Thread [Next in Thread>