Hi, On Wed, Aug 26, 2009 at 09:02:48PM +0900, Osamu Aoki wrote: > > # These are the lists.debian.org lists > > if (/^List-Id:.*<debian-(.*)\.lists.debian.org>/) > > { > > to Maildir/.debian.$MATCH1 > > } > > Nice. But what happens if maildir folder does not exst in advance. > Procmail used to create it on the fly but maildrop does not. > > Any nice tip to for this one?
After some googling, I found something along I think I got idea how to do this. if (/^List-Id:.*<debian-(.*)\.lists.debian.org>/) { `test -d Maildir/.debian.$MATCH1` if ( $RETURNCODE == 1 ) { # CREATE .Spam maildir `maildirmake -f debian.$MATCH1 Maildir` } to Maildir/.debian.$MATCH1 } This was shortcoming of maildrop ... I will do some check if this works. Besides, I tend to use Maildir/debian-*/ as folder name. I may do maildirmake Maildir/debian-$MATCH1 ... Something to think about when I subscribe to new mailing list. Osamu -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org