This forum has been archived. All content is frozen. Please use KDE Discuss instead.

help with using sieve-filters

Tags: None
(comma "," separated)
markum
Registered Member
Posts
165
Karma
1

help with using sieve-filters

Fri Jun 03, 2011 8:34 am
Hi,

not directly KDE related, but indirectly. I have started using Sieve-filters with Kmail. I would like to optimise a filter. There are Mails which all contain the same from, but have different subjects. Depending on the subject I want to put them into different folders. This is working like this so far:

Code: Select all
elsif allof (address :contains "From" "email@adress.de",
   header :contains "Subject" "[Subject1")
{
   fileinto "lists.subject1";
}

elsif allof (address :contains "From" "email@adress.de",
   header :contains "Subject" "[Subject2")
{
   fileinto "lists.subject1";
}

elsif allof (address :contains "From" "email@adress.de",
   header :contains "Subject" "[Subject3")
{
   fileinto "lists.subject1";
}

elsif allof (address :contains "From" "email@adress.de",
   header :contains "Subject" "[Subject4")
{
   fileinto "lists.subject2";
}

I would like to know if there is a way to optimise the filter in following way:
Code: Select all
"Pseudocode"
if address matches from "Emailaddress"
then if subject matches one of the following Subjects "Subject1","Subject2"
fileinto -> Folder1
then if subject matches one of the following Subjects "Subject3","Subject4"
fileinto -> Folder2


Markum


markum, proud to be a member of KDE forums since 2008-Nov.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]