Bug 76988

Summary: filter messages based on account from which they are fetched
Product: [Applications] kmail Reporter: Amit Shah <amitshah>
Component: filteringAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WAITINGFORINFO    
Severity: wishlist CC: luigi.toscano
Priority: NOR    
Version: 1.6   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Amit Shah 2004-03-08 07:47:36 UTC
Version:           1.6 (using KDE 3.2.0, compiled sources)
Compiler:          gcc version 3.3.3 (Debian)
OS:          Linux (i686) release 2.6.3-mm3

I don't think there's any way by which I can filter messages based on which account the message is downloaded from.

For example, I want to put all messages with "job" or "resume" in the subject line in folderA when the message is fetched from account x. If the message is received from account y, put it in folderB for similar rules (possibly a new filter rule).

This basically means that I want "and" as well as "or" - based filtering for messages... If account is "X" AND (subject contains "job" OR "resume"), put it in folderA.
Comment 1 Ingo Klöcker 2004-03-08 10:29:26 UTC
I agree that an easy way to filter by account would be nice.

But it should already be possible with the current version of KMail. In fact I'm already filtering by some accounts. In order to do this have a look at the Received headers (View->View Source) and try to figure out a useful search string which matches messages from the desired account. For example I'm using
<any header> [contains] by mail.epost.de
<any header> [contains] for ingo.kloecker@epost.de

You have to use <any header> instead of Received because currently only the first Received header is checked. If you can deduce the necessary information from the first Received header then you can of course also use "Received" instead of "<any header>".

And in order to achieve
  subject contains "job" OR "resume"
simply do
  subject matches regular expression "job|resume"
Comment 2 Amit Shah 2004-03-08 11:34:00 UTC
On Monday 08 Mar 2004 14:59, Ingo Klöcker wrote:
> And in order to achieve
>   subject contains "job" OR "resume"
> simply do
>   subject matches regular expression "job|resume"

ah, thanks for that tip.

Comment 3 Myriam Schweingruber 2012-08-18 08:39:45 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 4 Luigi Toscano 2012-08-19 00:55:34 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.