aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-08-25 03:08:30 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-08-25 03:08:30 +0000
commit0b56ab81af06f7efe35285a70944b724b0981d1c (patch)
treeb9d3f7850f714f30e739b4dc5d5b67b312b11cce
parent92191aaedaae3e0defcbe2415bdf46a405ad6aa0 (diff)
downloadfetchmail-0b56ab81af06f7efe35285a70944b724b0981d1c.tar.gz
fetchmail-0b56ab81af06f7efe35285a70944b724b0981d1c.tar.bz2
fetchmail-0b56ab81af06f7efe35285a70944b724b0981d1c.zip
Handle Debian bug.
svn path=/trunk/; revision=2054
-rw-r--r--driver.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index b7348a57..03ae4933 100644
--- a/driver.c
+++ b/driver.c
@@ -1350,11 +1350,16 @@ int num; /* index of message */
*/
if ((rcv = strstr(headers, "Received:")) == (char *)NULL)
rcv = headers;
+ /* handle ">Received:" lines too */
+ while (rcv > headers && rcv[-1] != '\n')
+ rcv--;
if (rcv > headers)
{
+ char c = *rcv;
+
*rcv = '\0';
n = stuffline(ctl, headers);
- *rcv = 'R';
+ *rcv = c;
}
if (!run.invisible && n != -1)
{