package fetchmail
tags 353575 confirmed
thanks

Roger,

I can confirm the problem.  There are some areas in fetchmail that do
not handle real NULL envelope senders properly, and the problem is
apparently not SDPS specific.

As a quick workaround, I am attaching a patch that is entirely
untested. Please apply to 6.3.2, recompile, reinstall and let me know if
the problem persists or is fixed.

(packager maintainers, I'm not tagging "patch" yet as I'm not sure if
it's the real patch or will change)

Thanks,

-- 
Matthias Andree
Index: pop3.c
===================================================================
--- pop3.c	(revision 4685)
+++ pop3.c	(working copy)
@@ -1129,8 +1129,9 @@
 
 #ifdef SDPS_ENABLE
     /*
-     * See http://www.demon.net/services/mail/sdps-tech.html
+     * See http://www.demon.net/helpdesk/producthelp/mail/sdps-tech.html/
      * for a description of what we're parsing here.
+     * -- updated 2006-02-22
      */
     if (ctl->server.sdps)
     {
@@ -1148,6 +1149,11 @@
 	    switch (linecount) {
 	    case 4:
 		/* No need to wrap envelope from address */
+		/* FIXME: some parts of fetchmail don't handle null
+		 * envelope senders, so use <> to mark null sender
+		 * as a workaround. */
+		if (strspn(buf, " \t") == strlen(buf))
+		    strcpy(buf, "<>");
 		sdps_envfrom = xmalloc(strlen(buf)+1);
 		strcpy(sdps_envfrom,buf);
 		break;

Reply via email to