Bug 79595 - making the reply-to-mailinglist feature detect more addresses
Summary: making the reply-to-mailinglist feature detect more addresses
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.6.1
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-13 23:00 UTC by Michael Andreen
Modified: 2012-08-19 00:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The patch (1.14 KB, patch)
2004-04-13 23:27 UTC, Michael Andreen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Andreen 2004-04-13 23:00:35 UTC
Version:           1.6.1 (using KDE KDE 3.2.1)
Installed from:    Compiled From Sources

I've written a simple patch to make kmail detect more mailinglist addresses, to make it work automatically on for example the qt-interest mailinglist. It would be nice to have it in official kmail.

Index: kmmessage.cpp
===================================================================
RCS file: /home/kde/kdepim/kmail/kmmessage.cpp,v
retrieving revision 1.451.2.1
diff -u -3 -p -r1.451.2.1 kmmessage.cpp
--- kmmessage.cpp       1 Feb 2004 14:04:51 -0000       1.451.2.1
+++ kmmessage.cpp       13 Apr 2004 20:55:38 -0000
@@ -882,7 +882,7 @@ KMMessage* KMMessage::createReply( KMail

   msg->initFromMessage(this);

-  KMMLInfo::name(this, headerName, mailingListStr);
+  QString mailingListName = KMMLInfo::name(this, headerName, mailingListStr);
   replyToStr = replyTo();

   msg->setCharset("utf-8");
@@ -898,6 +898,11 @@ KMMessage* KMMessage::createReply( KMail
     if ( rx.search( listPost, 0 ) != -1 ) // matched
       mailingListAddresses << rx.cap(1) + '@' + rx.cap(2);
   }
+  if( !mailingListName.isNull()){
+    QStringList recipients = splitEmailAddrList(headerField("To"));
+    recipients += splitEmailAddrList( headerField("CC"));
+    mailingListAddresses += recipients.grep(mailingListName, false);
+  }

   // use the "On ... Joe User wrote:" header by default
   replyStr = sReplyAllStr;
Comment 1 Michael Andreen 2004-04-13 23:27:58 UTC
Created attachment 5626 [details]
The patch

Probably better to have it as a file.
Comment 2 Myriam Schweingruber 2012-08-18 08:59:59 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 3 Luigi Toscano 2012-08-19 00:53:34 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.