aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-06-04 13:10:47 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-06-04 13:10:47 +0000
commitcfb9aaacebc282e7c32546ad3ff9c706d51c4ce6 (patch)
treedfa017c1e11325cfa5c02df5674a0b44489840f9 /transact.c
parent95e345feeff00c6a2553f0873795e9712e4bcf5e (diff)
downloadfetchmail-cfb9aaacebc282e7c32546ad3ff9c706d51c4ce6.tar.gz
fetchmail-cfb9aaacebc282e7c32546ad3ff9c706d51c4ce6.tar.bz2
fetchmail-cfb9aaacebc282e7c32546ad3ff9c706d51c4ce6.zip
Skip empty addresses.
svn path=/trunk/; revision=3626
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/transact.c b/transact.c
index 4750fbee..d20cf28c 100644
--- a/transact.c
+++ b/transact.c
@@ -92,6 +92,13 @@ static void find_server_names(const char *hdr,
{
char *atsign;
+ /*
+ * Handle empty address from a To: header containing only
+ * a comment.
+ */
+ if (!*cp)
+ continue;
+
/*
* If the name of the user begins with a qmail virtual
* domain prefix, ignore the prefix. Doing this here
@@ -474,6 +481,7 @@ int readheaders(int sock,
*/
if (protocol->delimited && line[0] == '.' && EMPTYLINE(line+1))
{
+ headers_ok = FALSE;
has_nuls = (linelen != strlen(line));
free(line);
goto process_headers;