substitute message-id in footers and fronters

Alvaro Herrera <[email protected]> Tue, 17 Mar 2009 12:11:07 -0400
Newsgroups gmane.mail.majordomo.majordomo2.devel
Message-ID <[email protected]>
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi Mj2 devs,

Some guys would like to have message-id substituted in footers in our
lists (postgresql.org).  Since this doesn't work on the default
installation, I had a look and I think this patch should be enough to
support that.  This is just code inspection though; I don't have a test
installation and thus I haven't actually tried it.

Any thoughts?  Can this be integrated?

Thanks,

-- 
Alvaro Herrera                 http://www.amazon.com/gp/registry/DXLWNGRJD34J

--lrZ03NoBR/3+SXJZ
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="substitute-message-id.patch"

diff -cr majordomo/lib/Mj/Resend.pm majordomo.orig/lib/Mj/Resend.pm
*** majordomo/lib/Mj/Resend.pm	2007-10-31 16:27:46.000000000 -0300
--- majordomo.orig/lib/Mj/Resend.pm	2009-03-17 12:06:32.000000000 -0400
***************
*** 707,712 ****
--- 707,713 ----
           'SUBJECT'    => $subject || '(no subject)',
           'SUBSCRIBED' => ($avars{'days_since_subscribe'} < 0) ? "not" : "",
           'USER'       => "$user",
+          'MESSAGE_ID' => $msgid,
    };
  
    if ($mode !~ /archive/) {

--lrZ03NoBR/3+SXJZ--