Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7889/src/modules

Modified Files:
        XFMailImport.cpp 
Log Message:
removed deprecated address-parsing functions from Message and replaced them 
with Address class methods

Index: XFMailImport.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/XFMailImport.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -b -u -2 -r1.25 -r1.26
--- XFMailImport.cpp    13 Oct 2003 00:41:14 -0000      1.25
+++ XFMailImport.cpp    23 Jun 2006 23:27:30 -0000      1.26
@@ -38,4 +38,5 @@
 #include "Message.h"
 #include "MFolder.h"
+#include "Address.h"
 
 // ----------------------------------------------------------------------------
@@ -127,6 +128,10 @@
    else if ( var == _T("from") )
    {
-      String personalName = Message::GetNameFromAddress(value);
-      if ( !!personalName )
+      AddressList_obj addrList(value);
+      Address *addr = addrList->GetFirst();
+      if ( addr )
+      {
+         const String personalName = addr->GetName();
+         if ( !personalName.empty() )
       {
          profile->writeEntry(MP_PERSONALNAME, personalName);
@@ -135,4 +140,5 @@
       }
    }
+   }
    else if ( var == _T("replyexand") )
    {


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to