Mailing List Archive

[Bug 606] New: Resent-Date headers are not correctly detected
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=606
Summary: Resent-Date headers are not correctly detected
Product: Exim
Version: 4.67
Platform: x86
OS/Version: Linux
Status: NEW
Severity: bug
Priority: medium
Component: Unfiled
AssignedTo: ph10@hermes.cam.ac.uk
ReportedBy: anomie@users.sourceforge.net
CC: exim-dev@exim.org


This bug report is actually for version 4.68 (and possibly earlier versions),
but that is not currently an option in bugzilla.

Detection of a Resent-Date header is broken, resulting in a duplicate
Resent-Date header being added if a Date header follows all Resent-Date
headers.

The problem is in receive.c line 1916: date_header_exists is set or cleared
when either a Date or Resent-Date header is seen. The correct behavior is to
set or clear the flag only when the appropriate header is seen (depending on
the value of resents_exist):
if(!resents_exist || is_resent) date_header_exists = TRUE;


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email

--
## List details at http://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##