Re: Maildrop - howto deliver email that contains the word "systemd" directly to trash with .mailfilter?
On Tue, Nov 18, 2014 at 03:40:38PM +0100, Toby wrote:
> 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?
To match against the subject line:
(/Subject:.*systemd/:h)
To match against the entire body:
(/systemd/:b)
Reply to: