Revision: 7426
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7426&view=rev
Author:   vadz
Date:     2008-04-22 19:26:41 -0700 (Tue, 22 Apr 2008)

Log Message:
-----------
fix handling of the addresses with quoted personal part by preserving the 
quotes during expansion and not splitting the address in the composer view

Modified Paths:
--------------
    trunk/M/src/adb/AdbManager.cpp
    trunk/M/src/gui/wxComposeView.cpp

Modified: trunk/M/src/adb/AdbManager.cpp
===================================================================
--- trunk/M/src/adb/AdbManager.cpp      2008-04-23 01:14:45 UTC (rev 7425)
+++ trunk/M/src/adb/AdbManager.cpp      2008-04-23 02:26:41 UTC (rev 7426)
@@ -525,6 +525,9 @@
       {
          case '"':
             quoted = !quoted;
+            // we still need to keep the quotes as otherwise we wouldn't parse
+            // the address correctly when creating the mail message later
+            address += '"';
             break;
 
          case '\\':

Modified: trunk/M/src/gui/wxComposeView.cpp
===================================================================
--- trunk/M/src/gui/wxComposeView.cpp   2008-04-23 01:14:45 UTC (rev 7425)
+++ trunk/M/src/gui/wxComposeView.cpp   2008-04-23 02:26:41 UTC (rev 7426)
@@ -2493,26 +2493,7 @@
                SetSubject(subject);
          }
 
-         // an email address
-         {
-            // split the string in addreses and add all of them
-            AddressList_obj addrList(address,
-                                     READ_CONFIG(m_Profile, MP_HOSTNAME));
-            if ( addrList )
-            {
-               Address *addr = addrList->GetFirst();
-               while ( addr )
-               {
-                  String address = addr->GetAddress();
-                  if ( !address.empty() )
-                  {
-                     AddRecipient(address, addrType);
-                  }
-
-                  addr = addrList->GetNext(addr);
-               }
-            }
-         }
+         AddRecipient(address, addrType);
          break;
 
       case Recipient_Fcc:


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to