Ticket #15 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Patch — Return-Path headers should not be added to the message by TurboMail.

Reported by: fs Owned by: amcgregor
Priority: normal Milestone: 2.1
Component: message-class Version: 2.0.4
Keywords: patch Cc:

Description

TurboMail inserts a Return-Path header in every mail sent. The - now obsolete - RFC 822 stated:

4.3.1.  RETURN-PATH

   This field  is  added  by  the  final  transport  system  that
   delivers  the message to its recipient.  The field is intended
   to contain definitive information about the address and  route
   back to the message's originator. (...)

TurboMail is definitely NOT the final transport system, therefore this header should be omitted.

RFC 2822 does not say anything particular about when to insert the Return-Path header but states:

The trace fields are a group of header fields consisting of an
optional "Return-Path:" field, and one or more "Received:" fields.

I interpret this as there may be only ONE Return-Path header. Inserting two of them as TurboMail does when smtpfrom is not None, should be always wrong.

Furthermore, TurboMail inserts a header named 'Old-Return-Path' which does not appear in any of the RFCs.

With the attached patch no Return-path or Old-Return-Path headers are inserted anymore by TurboMail.

Attachments

remove_insane_headers.2.patch (1.7 kB) - added by fs 1 year ago.
new version which does not include the fix for #14 (can't replace the original diff as I don't have TRAC_ADMIN privileges)

Change History

Changed 1 year ago by fs

new version which does not include the fix for #14 (can't replace the original diff as I don't have TRAC_ADMIN privileges)

Changed 1 year ago by amcgregor

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 2.0.5

Applied a slightly modified patch to work around test suite weirdness in r29. (Differences between my version and your version of basic_tests.py.)

Changed 1 year ago by amcgregor

  • summary changed from !TurboMail inserts Return-Path headers in sent email to Return-Path headers should not be added to the message by TurboMail.

Changed 1 year ago by amcgregor

  • keywords patch added
  • summary changed from Return-Path headers should not be added to the message by TurboMail. to Return-Path headers should not be added to the message by TurboMail. — Patch

Changed 1 year ago by amcgregor

  • summary changed from Return-Path headers should not be added to the message by TurboMail. — Patch to Patch — Return-Path headers should not be added to the message by TurboMail.
Note: See TracTickets for help on using tickets.