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

List:       kmail-devel
Subject:    [Bug 78616] kmailcvt skips some plain text emails during import
From:       Laurence Anderson <l.d.anderson () warwick ! ac ! uk>
Date:       2004-06-13 16:11:24
Message-ID: 20040613161124.5418.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=78616      
l.d.anderson warwick ac uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From l.d.anderson warwick ac uk  2004-06-13 18:11 -------
CVS commit by landers: 

KMail's dcopAddMessage doesn't convert file paths to KURL's properly, so do it here.
CCMAIL:78616-close bugs kde org


  M +5 -1      filters.cxx   1.43


--- kdepim/kmailcvt/filters.cxx  #1.42:1.43
 @ -20,4 +20,5  @
 #include <dcopclient.h>
 #include <dcopref.h>
+#include <kurl.h>
 
 #include "filters.hxx"
 @ -125,9 +126,12  @ bool Filter::addMessage( FilterInfo* inf
                          const QString& msgPath )
 {
+  KURL msgURL;
+  msgURL.setPath( msgPath );
+  
   if ( !kapp->dcopClient()->isApplicationRegistered( "kmail" ) )
     KApplication::startServiceByDesktopName( "kmail", QString::null ); // Will wait \
until kmail is started  
     DCOPReply reply = DCOPRef( "kmail", "KMailIface" )
-                        .call( "dcopAddMessage", folderName, msgPath );
+                        .call( "dcopAddMessage", folderName, msgURL );
   if ( !reply.isValid() )
   {
_______________________________________________
KMail developers mailing list
KMail-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmail-devel


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

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