View Single Post
  #1  
Old 6th May 2013, 11:14
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,127
Thanks: 4
Thanked 43 Times in 40 Posts
Default Custom Mail Filters

Hi there

I'm trying to move all mail that contains "*EXT*" in the "Delivered-To" header into a folder "EXT". I use postfix/dovecot and I added this custom rule:

Code:
if header :regex    ["Delivered-To"] [".*EXT"] {
    fileinto "EXT";
    stop;
}
The problem is, that it's not being put into the EXT folder but stays in the main inbox.

So, what's wrong with it? Or is there a way to get some logs on this?
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Sponsored Links