Marcel asked,
| I'd like to use procmail to filter my old mail (approx. 3700 in
| Courier-IMAP-Maildir) in folders.
|
| How do I do that? All mail reside in "Maildir/cur"...
In sh or any sh-based shell,
for message in Maildir/cur/*
# if you want to rm the originals, remove the '#' in the next line
do procmail < $message # && rm $message
done
or the equivalent syntax in a csh-based shell.
Because the shell will expand the wildcard before invoking procmail on the
files with individual messages, the usual loop cautions about doing this on
an mbox don't apply.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail