[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/messagelist
From:       Thomas McGuire <mcguire () kde ! org>
Date:       2010-02-09 13:30:11
Message-ID: 1265722211.403860.15737.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1087736 by tmcguire:

Fix regression: Make sure to strip the mail addresses before displaying them in the \
mail list.

(Even better of course would be to display the full mail address in a tooltip)


 M  +4 -2      storagemodel.cpp  


--- trunk/KDE/kdepim/messagelist/storagemodel.cpp #1087735:1087736
@@ -18,6 +18,8 @@
 
 #include "storagemodel.h"
 
+#include <messagecore/stringutil.h>
+
 #include <akonadi/attributefactory.h>
 #include <akonadi/collection.h>
 #include <akonadi/collectionstatistics.h>
@@ -209,8 +211,8 @@
   const KMime::Message::Ptr mail = messageForRow( row );
   if ( !mail ) return false;
 
-  QString sender = mail->from()->asUnicodeString();
-  QString receiver = mail->to()->asUnicodeString();
+  QString sender = MessageCore::StringUtil::stripEmailAddr( \
mail->from()->asUnicodeString() ); +  QString receiver = \
MessageCore::StringUtil::stripEmailAddr( mail->to()->asUnicodeString() );  
   // Static for speed reasons
   static const QString noSubject = i18nc( "displayed as subject when the subject of \
a mail is empty", "No Subject" );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic