Update of /cvsroot/mahogany/M/src/mail
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26015/src/mail

Modified Files:
        MailFolder.cpp 
Log Message:
only set From: from To: if the message was sent to an own address (not ML...)

Index: MailFolder.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolder.cpp,v
retrieving revision 1.308
retrieving revision 1.309
diff -b -u -2 -r1.308 -r1.309
--- MailFolder.cpp      5 Jul 2004 20:32:42 -0000       1.308
+++ MailFolder.cpp      6 Jul 2004 12:25:18 -0000       1.309
@@ -50,4 +50,5 @@
 #include "Composer.h"
 #include "Message.h"
+#include "Address.h"
 
 class MPersMsgBox;
@@ -1052,5 +1053,10 @@
       String to;
       msg->GetHeaderLine(_T("To"), to);
-      cv->SetFrom(to);
+
+      String from;
+      if ( ContainsOwnAddress(to, profile, OwnAddress_From, &from) )
+      {
+         cv->SetFrom(from);
+      }
    }
 



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to