17 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Working on patch to a...
FromSent OnAttachments
Rob HuttonAug 22, 2003 1:51 pm 
Andreas StollarAug 22, 2003 4:06 pm 
Sam VarshavchikAug 22, 2003 7:46 pm 
Martin List-PetersenAug 23, 2003 6:17 am 
Rob HuttonAug 23, 2003 8:26 am 
Rob HuttonAug 23, 2003 9:57 am 
Sam VarshavchikAug 23, 2003 5:36 pm 
Rob HuttonAug 23, 2003 8:17 pm 
Rob HuttonAug 24, 2003 12:27 pm 
Sam VarshavchikAug 24, 2003 1:40 pm 
Rob HuttonAug 24, 2003 2:30 pm 
Rob HuttonAug 24, 2003 6:44 pm 
Rob HuttonAug 25, 2003 6:42 pm 
Matthias AndreeAug 25, 2003 8:04 pm 
Sam VarshavchikAug 26, 2003 6:10 am 
Peter MannAug 26, 2003 7:18 am 
Matthias AndreeAug 26, 2003 5:31 pm 
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] Working on patch to autocreate maildirs/off topicActions...
From:Peter Mann (Pete@tuke.sk)
Date:Aug 26, 2003 7:18:54 am
List:net.sourceforge.lists.courier-maildrop

On Fri, Aug 22, 2003 at 04:06:04PM -0700, Andreas Stollar wrote:

I am not a C++ programmer either, and I am much lazier. I set up my global /etc/maildroprc file to autocreate Maildirs with this simple sh script:

# Global maildrop filter file

# Uncomment this line to make maildrop default to ~/Maildir for # delivery- this is where courier-imap (amongst others) will look. DEFAULT="$HOME/Maildir/" `until test -d $HOME/Maildir; do /usr/local/bin/maildirmake $HOME/Maildir; done`

it has been working for months in my production system, an 20 node cluster with 100,000 accounts.

yes - it works, but only for INBOX ... what about other folders? e.g. i have .mailfilter file with filtering many mailing lists to separate folders - now i have something like this:

MAIL_ADRESAR=$HOME/Maildir AKTUALNY_MESIAC=`date +%Y-%m`

# courier if (/^List-Id: Courier mail server mailing list
<courier-users.lists.sourceforge.net>/:h) { `if [ ! -d "$MAIL_ADRESAR/.tools.courier-users-$AKTUALNY_MESIAC" ]; then \ maildirmake "$MAIL_ADRESAR/.tools.courier-users-$AKTUALNY_MESIAC"; \ fi`

to "$MAIL_ADRESAR/.tools.courier-users-$AKTUALNY_MESIAC" }

# maildrop if (/^List-Id: <courier-maildrop.lists.sourceforge.net>/:h \ || /^List-Post:.*cour@lists.sourceforge.net>/:h) { `if [ ! -d "$MAIL_ADRESAR/.tools.maildrop-$AKTUALNY_MESIAC" ]; then \ maildirmake "$MAIL_ADRESAR/.tools.maildrop-$AKTUALNY_MESIAC"; \ fi`

to "$MAIL_ADRESAR/.tools.maildrop-$AKTUALNY_MESIAC" }

with autocreating Maildirs this should look like:

if (/^List-Id: Courier mail server mailing list
<courier-users.lists.sourceforge.net>/:h) to "$MAIL_ADRESAR/.tools.courier-users-$AKTUALNY_MESIAC"

if (/^List-Id: <courier-maildrop.lists.sourceforge.net>/:h \ || /^List-Post:.*cour@lists.sourceforge.net>/:h) to "$MAIL_ADRESAR/.tools.maildrop-$AKTUALNY_MESIAC"

default value - autocreate maildirs