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

List:       kmail-devel
Subject:    [PATCH] include Bcc in <Recepients>
From:       Till Adam <till () adam-lilienthal ! de>
Date:       2003-06-30 19:47:31
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Folks,

Someone on irc asked me to add this, since people might want to search their 
sent-mail folder. It doesn't hurt, as far as I can see. Any objections?

Till
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/AJPXtrsWGirveVsRAgjkAKCAw6YNWIUpddbOcAjALtde6kTjNACZAeh1
DJ/y4kOZX8DiDAmQnXBrxfQ=
=TZ2k
-----END PGP SIGNATURE-----

["BccInRecipients.diff" (text/x-diff)]

Index: kmsearchpattern.cpp
===================================================================
RCS file: /home/kde/kdepim/kmail/kmsearchpattern.cpp,v
retrieving revision 1.36
diff -u -3 -p -r1.36 kmsearchpattern.cpp
--- kmsearchpattern.cpp	24 May 2003 09:24:14 -0000	1.36
+++ kmsearchpattern.cpp	30 Jun 2003 19:33:16 -0000
@@ -135,6 +135,10 @@ bool KMSearchRule::matches( const DwStri
       static const DwBoyerMoore cc("\nCc: ");
       res = matches( aStr, msg, &cc, 2 );
     }
+    if ( !res ) {
+      static const DwBoyerMoore bcc("\nBcc: ");
+      res = matches( aStr, msg, &bcc, 2 );
+    }
     return res;
   } else {
     if ( !msg.isComplete() ) {
@@ -171,9 +175,11 @@ bool KMSearchRule::matches( const KMMess
       // do we need to treat this case specially? Ie.: What shall
       // "equality" mean for recipients.
       return matches( false, 0, 0, msg->headerField("To") )
-          || matches( false, 0, 0, msg->headerField("Cc") );
+          || matches( false, 0, 0, msg->headerField("Cc") )
+          || matches( false, 0, 0, msg->headerField("Bcc") );
 
-    msgContents = msg->headerField("To") + msg->headerField("Cc");
+    msgContents = msg->headerField("To") + msg->headerField("Cc")
+                + msg->headerField("Bcc");
   } else if ( mField == "<size>" ) {
     numerical = true;
     numericalMsgContents = int( msg->msgLength() );


_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail


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

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