15 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] Marking messages as r...
FromSent OnAttachments
Chris AndersonSep 30, 2003 7:48 pm 
Pedro HernadezSep 30, 2003 10:01 pm 
Martin LohmeierOct 1, 2003 5:32 am 
Robin BowesOct 1, 2003 8:30 am 
Sam VarshavchikOct 1, 2003 2:58 pm 
Robin BowesOct 1, 2003 3:16 pm 
Sam VarshavchikOct 1, 2003 3:30 pm 
Robin BowesOct 1, 2003 3:48 pm 
Sam VarshavchikOct 1, 2003 7:43 pm 
Robin BowesOct 2, 2003 1:30 am 
Sam VarshavchikOct 2, 2003 4:27 am 
Robin BowesOct 2, 2003 4:40 am 
Sam VarshavchikOct 2, 2003 1:29 pm 
Chris AndersonOct 2, 2003 5:04 pm 
Pedro HernadezOct 3, 2003 11:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [maildropl] Marking messages as read automaticallyActions...
From:Robin Bowes (robi@robinbowes.com)
Date:Oct 1, 2003 8:30:48 am
List:net.sourceforge.lists.courier-maildrop

Pedro Hernandex <phph@yahoo.es> wrote:

Pedro,

I had a look at your Maildrop script in which you do a lot of filtering of
mailing lists and I think you may be interested in the following fragment:

if ( /^List-Id:.*<![0-9A-Za-z_\-]*!/ \ || /^X-list: ![0-9A-Za-z_\-]*!/ \ || /^Mailing-List: contact ![0-9A-Za-z_\-]*!-help@.*/ \ || /^Mailing-List: list ![0-9A-Za-z_\-]*!@.*/ \ || /^Sender: owner\-![0-9A-Za-z_\-]*!@cyrusoft.com/ \ || /^List-Post: <mailto:![0-9A-Za-z_\-]*/ \ || /^List-Subscribe: <mailto:![0-9A-Za-z_\-]*!-subscribe@.*/ \ || /^Return-Path: <owner-![0-9A-Za-z_\-]*!@.*>/ ) { exception { to "${VMAILDIR}/.${LISTS}.${MATCH2}/" } exception { `${MAILDIRMAKE} -f ${LISTS}.${MATCH2} ${VMAILDIR}` `( echo Subject: New IMAP folder created ; \ echo Created ${LISTS}.${MATCH2} in ${VMAILDIR} ) \ | QMAILNAME="Mail Admin" \ QMAILUSER="postmaster" \ QMAILHOST=robinbowes.com \ ${QMAILINJECT} ${EXT}@${HOST}` to "${VMAILDIR}/.${LISTS}.${MATCH2}/" } }

What this does is pretty simple:

If the message is from mailing list, it is delivered to a folder with the same
name as the list. If the folder doesn't exist it is created and a message notifying the user is sent.

HTH,

R.