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

2014-12-09 Thread Dan Ritter
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)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20141209175210.gj30...@randomstring.org



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

2014-12-08 Thread berenger . morel



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.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/0594a16e7e9cf6f33794e8727eca0...@neutralite.org



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

2014-11-18 Thread Toby

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


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: https://lists.debian.org/0e17f624f4757990a9fe0ee8fa4e9...@debman.se