From fd5d449da27eccbd8461ee7d8f254850913584dd Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 22 Feb 2006 09:48:41 +0000 Subject: Preliminary UNTESTED workaround for SDPS null envfrom (Debian Bug#353575). svn path=/branches/BRANCH_6-3/; revision=4694 --- pop3.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index d3bba8d5..b7054de0 100644 --- a/pop3.c +++ b/pop3.c @@ -1129,8 +1129,9 @@ static int pop3_fetch(int sock, struct query *ctl, int number, int *lenp) #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 @@ static int pop3_fetch(int sock, struct query *ctl, int number, int *lenp) 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; -- cgit v1.2.3