Random entry – here’s a procmail script that will automatically squirrel away any e-mails with [ ] in the subject into a mail folder with the name of the contents of the [ ] (after stripping out any nasty characters):


SUBJ = `formail -xSubject | expand | \

   sed -e 's/.*\[(.*)\].*/\1/' -e 's/ /_/g' \

   -e 's/[^_a-zA-Z0-9]//g'`



:0 H

*   ^Subject:.*\[.*\].*

  lists/${SUBJ}