]> Pileus Git - ~andy/fetchmail/commitdiff
Skip empty addresses.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 4 Jun 2002 13:10:47 +0000 (13:10 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 4 Jun 2002 13:10:47 +0000 (13:10 -0000)
svn path=/trunk/; revision=3626

transact.c

index 4750fbee3907588b658af61a3b361d2bf990a0a3..d20cf28c8f2bd01a338031c451e2c188575348ce 100644 (file)
@@ -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;