[exim-dev] [Bug 607] New: Resent-Date and Resent-Message-ID …

Etusivu
Poista viesti
Vastaa
Lähettäjä: Brad "anomie" Jorsch
Päiväys:  
Vastaanottaja: exim-dev
Uudet otsikot: [exim-dev] [Bug 607] Resent-Date and Resent-Message-ID should be prepended, not appended, [exim-dev] [Bug 607] Resent-Date and Resent-Message-ID should be prepended, not appended
Aihe: [exim-dev] [Bug 607] New: Resent-Date and Resent-Message-ID should be prepended, not appended
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=607
           Summary: Resent-Date and Resent-Message-ID should be prepended,
                    not appended
           Product: Exim
           Version: 4.67
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Unfiled
        AssignedTo: ph10@???
        ReportedBy: anomie@???
                CC: exim-dev@???



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

Resent-Message-ID and Resent-Date are added at the end of the message, instead
of the beginning. While it's clear that we're not trying to handle multiple
blocks of Resent-* headers, exim should at least prepend these new headers (as
called for by RFC 2822 section 3.6.6) rather than append them.

The attached patch attempts to do this. The changes in receive.c simply change
the header_add() calls to header_add_at_position(). The changes in header.c
prevent the insertion of the Resent-* headers before the Received header that
is being generated at the same time; possibly there is a better way to fix this
part.


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