aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-02-22 09:48:41 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-02-22 09:48:41 +0000
commitfd5d449da27eccbd8461ee7d8f254850913584dd (patch)
treee8b45eea7c69021cb50aae01db577b61fc8b9826 /pop3.c
parent87a1badfe1453a176c5d24e2f5a860e252af6000 (diff)
downloadfetchmail-fd5d449da27eccbd8461ee7d8f254850913584dd.tar.gz
fetchmail-fd5d449da27eccbd8461ee7d8f254850913584dd.tar.bz2
fetchmail-fd5d449da27eccbd8461ee7d8f254850913584dd.zip
Preliminary UNTESTED workaround for SDPS null envfrom (Debian Bug#353575).
svn path=/branches/BRANCH_6-3/; revision=4694
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c8
1 files changed, 7 insertions, 1 deletions
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;