diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-02-13 00:59:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-02-13 00:59:38 +0000 |
commit | f87ddcebc141c1db8086227fe0b141aba9837bb5 (patch) | |
tree | f8e9e7046f00058ce85498897d8509cf0d5eae20 | |
parent | 60c4abd04949ce1e69e3298dad9ad83ac37e104e (diff) | |
download | fetchmail-f87ddcebc141c1db8086227fe0b141aba9837bb5.tar.gz fetchmail-f87ddcebc141c1db8086227fe0b141aba9837bb5.tar.bz2 fetchmail-f87ddcebc141c1db8086227fe0b141aba9837bb5.zip |
Foil the rewrite logic.
svn path=/trunk/; revision=871
-rw-r--r-- | driver.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -527,13 +527,17 @@ char *realname; /* real name of host */ /* * Hack time. If the first line of the message was blank, with no headers * (this happens occasionally due to bad gatewaying software) cons up - * a set of fake headers. + * a set of fake headers. + * + * If you modify the fake header template below, be sure you don't + * make either From or To address @-less, otherwise the reply_hack + * logic will do bad things. */ if (headers == (char *)NULL) { sprintf(buf, -"From: FETCHMAIL-DAEMON\r\nTo: %s\r\nSubject: Headerless mail from %s@%s\r\n", - ctl->localnames->id, ctl->remotename, realname); + "From: <FETCHMAIL-DAEMON@%s>\r\nTo: %s@localhost\r\nSubject: Headerless mail from %s's mailbox on %s\r\n", + fetchmailhost, user, ctl->remotename, realname); headers = xstrdup(buf); } |