[Dovecot] Filtering virtual mailbox using other virtual mailbox?

Timo Sirainen tss at iki.fi
Wed Sep 1 22:18:09 EEST 2010


On Sun, 2010-08-29 at 15:28 +0200, Giovanni Giorgi wrote:
> I have a virtual/spam mailbox which filter out all the spam thanks to  
> spamassassin. This mailbox is virtual, its description is
> INBOX
> -Trash
> -Trash/*
> -Junk
>   subject SPAM

The above only shows messages in INBOX that have "SPAM" in subject. Did
you want it from all mailboxes? Then you should replace INBOX with *.
Otherwise the -Trash and -Junk lines are just ignored.

> I'd like to do a simple virtual/ham mbox using this dovecot-virtual
> 
> INBOX
> -virtual/spam
>   to: jj at gioorgi.com

"to: jj at gioorgi.com" isn't a valid search query. Do you want something
like:

INBOX
  TO jj at gioorgi.com

or maybe

INBOX
  NOT SUBJECT SPAM




More information about the dovecot mailing list