aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{