On Sat, 10 Aug 2002 10:04:54 -0700 (Pacific Daylight Time) Michael A Chase
<[EMAIL PROTECTED]> wrote:
MAC> If anyone want's an unmangled copy of the patch, it's attached to this
MAC> message.
[BTW you can attach patches to the bug tracker -- they won't be mangled then]
MAC> --- M-Old/src/mail/SendMessageCC.cpp 2002-07-31 09:43:29.000000000 -0700
MAC> +++ m/src/mail/SendMessageCC.cpp 2002-08-10 09:49:57.000000000 -0700
MAC> @@ -1043,7 +1043,14 @@ SendMessageCC::Build(bool forStorage)
MAC> m_Envelope->date = cpystr(tmpbuf);
MAC>
MAC> // Message-Id:
MAC> - m_Envelope->message_id = cpystr(BuildMessageId(m_DefaultHost));
MAC> + if ( ! HasHeaderEntry("Message-ID") )
MAC> + // No Message-ID yet, add new one to envelope
MAC> + m_Envelope->message_id = cpystr(BuildMessageId(m_DefaultHost));
MAC> + else {
MAC> + // Move existing Message-ID to envelope
MAC> + SetAddressField(&m_Envelope->message_id, GetHeaderEntry("Message-ID"));
MAC> + RemoveHeaderEntry("Message-ID");
MAC> + }
MAC>
MAC> // don't add any more headers to the message being resent
MAC> if ( m_Envelope->remail )
MAC>
This should work as well but it doesn't seem to be right to add Message-Id
first only to remove it afterwards so I made 2 other changes instead:
1. refuse to add Message-Id to the message in AddHeaderEntry()
2. don't try to do it when sending messages from Outbox
I hope this should fix the problem as well -- does it?
Thanks,
VZ
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers