From a09d628f66a29063ef3060c1f25b1b23051a7e89 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 16 Mar 1998 19:54:13 +0000 Subject: Cope with empty return-path header. svn path=/trunk/; revision=1704 --- driver.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 018b17cc..e8c51017 100644 --- a/driver.c +++ b/driver.c @@ -830,10 +830,13 @@ int num; /* index of message */ * If the SMTP server conforms to the standards, and fetchmail gets the * envelope sender from the Return-Path, the new Return-Path should be * exactly the same as the original one. + * + * Empty Return-Path headers will be ignored. + * */ - if (!strncasecmp("Return-Path:", line, 12)) + if (!strncasecmp("Return-Path:", line, 12) && (cp = nxtaddr(line))) { - strcpy(return_path, nxtaddr(line)); + strcpy(return_path, cp); if (!ctl->mda) { free(line); continue; -- cgit v1.2.3