[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Maildrop - howto deliver email that contains the word "systemd" directly to trash with .mailfilter?





Le 18.11.2014 15:40, Toby a écrit :
Hello,

the subject says it all. I'm starting to have problems finding useful
mails from this list.
They are hiding somewhere between all systemd arguments.

Since I'm not interested in what init system that will be the default
and are trusting that my boxes will work just fine with the one chosen by the developers I'm trying to figure out howto filter incoming mails
that contains the word "systemd" and deliver them to trash.

I have maildrop as mda using Maildir.

I use this in my .mailfilter to sort mails from this list to a
specific folder:

if (/^X-Mailing-List: <debian-user@lists.debian.org>/)
        to "$HOME/Maildir/.Linux.Debian.User"

Can anyone give me hint on how to achieve this by adding another rule?

Thanks!

/Toby

This sounds like a regex filter, right?
So, I guess that, something like

 if (/^X-Subject: .*systemd.*/)
         to "/dev/null"

could work. Of course, I guessed the X-Subject, this might be something else.


Reply to: