Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv18692/src/mail

Modified Files:
        SendMessageCC.cpp 
Log Message:
don't generate Message-ID header in the outgoing messages if we don't have the FQDN as 
exim doesn't like it

Index: SendMessageCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/SendMessageCC.cpp,v
retrieving revision 1.200
retrieving revision 1.201
diff -b -u -2 -r1.200 -r1.201
--- SendMessageCC.cpp   12 Sep 2002 02:36:51 -0000      1.200
+++ SendMessageCC.cpp   4 Oct 2002 19:01:05 -0000       1.201
@@ -1061,6 +1061,11 @@
    }
 
-   // Message-Id:
+   // Message-Id: we should always generate it ourselves (section 3.6.4 of RFC
+   // 2822) but at least some MTAs (exim) reject it if the id-right part of it
+   // is not a FQDN so don't do it in this case
+   if ( m_DefaultHost.find('.') != String::npos )
+   {
    m_Envelope->message_id = cpystr(BuildMessageId(m_DefaultHost));
+   }
 
    // don't add any more headers to the message being resent



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to