[imapfilter-devel]match anything in given label

Lefteris Chatzibarbas lefcha at hellug.gr
Mon Jun 17 21:39:02 EEST 2002


On Mon, Jun 17, 2002 at 12:23:03PM -0400, Matej Cepl wrote:
> Have can I match a message on just an existence of some
> particular header (without regard to its content). I had in
> .procmailrc this:
> 
>    :0:
>    * ^X-AntiAbuse:
>    spam
> 
> Therefore, I would like to have something like
> 
>    filter spam or
>      mask header X-AntiAbuse .
>    action move INBOX.Trash
> 
> but exactly this won't fly, will it?

Hmm...

Can you try something like this:

  filter spam or
    mask header X-AntiAbuse ""
  action move INBOX.Trash
  
Regular expressions in imapfilter's masks will solve problems like that and
much more. Eventually, imapfilter will have this capability...

Lefteris



More information about the Imapfilter-devel mailing list