aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-02-13 00:59:38 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-02-13 00:59:38 +0000
commitf87ddcebc141c1db8086227fe0b141aba9837bb5 (patch)
treef8e9e7046f00058ce85498897d8509cf0d5eae20 /driver.c
parent60c4abd04949ce1e69e3298dad9ad83ac37e104e (diff)
downloadfetchmail-f87ddcebc141c1db8086227fe0b141aba9837bb5.tar.gz
fetchmail-f87ddcebc141c1db8086227fe0b141aba9837bb5.tar.bz2
fetchmail-f87ddcebc141c1db8086227fe0b141aba9837bb5.zip
Foil the rewrite logic.
svn path=/trunk/; revision=871
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/driver.c b/driver.c
index 9999985d..c6a67b81 100644
--- a/driver.c
+++ b/driver.c
@@ -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);
}