diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-06-04 08:07:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-06-04 08:07:53 +0000 |
commit | 1d38a44a1c08942be7f411be6989082f88aafa22 (patch) | |
tree | d703a718b8d8dc88898d88ba658246086e74f5eb | |
parent | b3fe76c9666b4c7d5d142c73ebab774c4f9a2677 (diff) | |
download | fetchmail-1d38a44a1c08942be7f411be6989082f88aafa22.tar.gz fetchmail-1d38a44a1c08942be7f411be6989082f88aafa22.tar.bz2 fetchmail-1d38a44a1c08942be7f411be6989082f88aafa22.zip |
Don't generate MAIL FROM headers with embedded newlines.
svn path=/trunk/; revision=3334
-rw-r--r-- | driver.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -922,7 +922,9 @@ static int readheaders(int sock, else if (from_offs >= 0 && (ap = nxtaddr(msgblk.headers + from_offs))); else if (reply_to_offs >= 0 && (ap = nxtaddr(msgblk.headers + reply_to_offs))); else if (app_from_offs >= 0 && (ap = nxtaddr(msgblk.headers + app_from_offs))); - if (ap) strcpy( msgblk.return_path, ap ); + /* multi-line MAIL FROM addresses confuse SMTP terribly */ + if (ap && !strchr(ap, '\n')) + strcpy(msgblk.return_path, ap); } /* cons up a list of local recipients */ |