[Kde-imaging] [Bug 119562] A patch that adds support for the Sylpheed-Claws mua

Tom Albers tomalbers at kde.nl
Sat Jan 7 21:34:34 CET 2006


------- 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=119562         
tomalbers kde nl changed:

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



------- Additional Comments From tomalbers kde nl  2006-01-07 21:34 -------
SVN commit 495347 by toma:

Adds support for the Sylpheed-Claws mua. Based on a patch from Paul Mangan. I modified the patch to prevent code duplication. Can you verify if this solution works as well? Thanks dor the patch.
BUG: 119562


 M  +8 -3      sendimages.cpp  
 M  +2 -0      sendimagesdialog.cpp  


--- trunk/extragear/libs/kipi-plugins/sendimages/sendimages.cpp #495346:495347
 @ -344,12 +344,17  @
 
     // Sylpheed mail agent call.
 
-    if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Sylpheed" )
+    if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Sylpheed" ||
+         m_sendImagesDialog->m_mailAgentName->currentText() == "Sylpheed-Claws" )
     {
         m_mailAgentProc = new KProcess;
-        *m_mailAgentProc << "sylpheed" << "--compose";
-        *m_mailAgentProc << "--attach";
+        if ( m_sendImagesDialog->m_mailAgentName->currentText() == "Sylpheed")
+            *m_mailAgentProc << "sylpheed";
+        else
+            *m_mailAgentProc << "sylpheed-claws";
 
+        *m_mailAgentProc << "--compose" << "--attach";
+
         for ( KURL::List::Iterator it = m_filesSendList.begin() ; it != m_filesSendList.end() ; ++it )
             *m_mailAgentProc << QFile::encodeName((*it).path());
 
--- trunk/extragear/libs/kipi-plugins/sendimages/sendimagesdialog.cpp #495346:495347
 @ -360,6 +360,7  @
     m_mailAgentName->insertItem( "Mozilla" );
     m_mailAgentName->insertItem( "Netscape" );
     m_mailAgentName->insertItem( "Sylpheed" );
+    m_mailAgentName->insertItem( "Sylpheed-Claws" );
     m_mailAgentName->insertItem( "Thunderbird" );
     m_mailAgentName->setCurrentText( "Kmail" );
     QWhatsThis::add( m_mailAgentName, i18n("<p>Select here your preferred external mail agent program."
 @ -371,6 +372,7  @
                                            "<b>Mozilla</b>: >= 1.4<p>"
                                            "<b>Netscape</b>: >= 7.x<p>"
                                            "<b>Sylpheed</b>: >= 0.9<p>"
+                                           "<b>Sylpheed-Claws</b>: >= 0.9<p>"
                                            "<b>Thunderbird</b>: >= 0.4<p>") );
 
     hlay10->addWidget( m_mailAgentLabel );


More information about the Kde-imaging mailing list