Bug 92866

Summary: Filters scripting language support
Product: [Applications] kmail Reporter: Alvaro Segura <aseguralasa>
Component: filteringAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: montel
Priority: NOR    
Version: 1.6.1   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alvaro Segura 2004-11-07 19:28:07 UTC
Version:           1.6.1 (using KDE KDE 3.2.1KDE 1.2)
Installed from:    Mandrake RPMsMandrake RPMs
OS:                Linux

Instead of creating filters through comboboxes in a GUI, it would be very powerful to have a "Filter stript editor". It coud use the existing JS engine and expose special objects and methods in it for filter development. Something like:

if(mail.sender.contains("osama")
	mail.trash();
if(mail.sender.isInAddressBooxFolder("friends"))
	mail.moveTo("Friends");
if(mail.subject.contains("[KDE]") && !mail.hasAttachments())
	mail.sendTo("KDE Development");
Comment 1 Till Adam 2005-06-04 22:50:18 UTC
Ideally Sieve, yes. That's being worked on.
Comment 2 Laurent Montel 2011-08-31 07:42:13 UTC
Sieve support implemented long time ago.
Will close it.