From f87ddcebc141c1db8086227fe0b141aba9837bb5 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 13 Feb 1997 00:59:38 +0000 Subject: Foil the rewrite logic. svn path=/trunk/; revision=871 --- driver.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'driver.c') 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: \r\nTo: %s@localhost\r\nSubject: Headerless mail from %s's mailbox on %s\r\n", + fetchmailhost, user, ctl->remotename, realname); headers = xstrdup(buf); } -- cgit v1.2.3