>The last chance is to patch the sources, modifying the Header Cooker, I
>already tried, but is unclear how it works and I just obtained a mess ;)


The attached patch to CookHeaders.py will do what you want. With the
patch, if the list's first_strip_reply_to is No and the original post
does not contain a Reply-To:, Mailman will add a Reply-To: with the
address from the From: header (or the Sender: header if there is no
From:).

So with the patch if you set first_strip_reply_to to No and also set
reply_goes_to_list to This list, the delivered posts will have
Reply-To: containing both the list address and either the From:
address or the original Reply-To: address.

-- 
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

--- f:/MM_bzr/2.1/Mailman/Handlers/CookHeaders.py       2008-06-17 
17:35:26.000000000 -0700
+++ f:/test-mailman/Mailman/Handlers/CookHeaders.py     2010-09-20 
07:29:10.281250000 -0700
@@ -136,6 +136,11 @@
             orig = msg.get_all('reply-to', [])
             for pair in getaddresses(orig):
                 add(pair)
+            # If there was no Reply-To, add the From: or Sender: address(es)
+            if not orig:
+                for pair in getaddresses(
+                        msg.get_all('from', msg.get_all('sender', []))):
+                    add(pair)
         # Set Reply-To: header to point back to this list.  Add this last
         # because some folks think that some MUAs make it easier to delete
         # addresses from the right than from the left.
------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to