Contents

procmail tip

Contents

I get a lot of email and sort it using procmail. Recently I’ve had to aggregate several separate mailgroups into one folder, without losing track of the original mailgroup. Procmail to the rescue.

I settled on tagging the subject like this:

pre(brush: plain).. :0

  • ^Subject:/.*
    { SUBJECT = $MATCH }

:0

  • ^X-Orig-Subject:/.*
    { ORIGSUB = $MATCH }

:0

  • ^TO_/(somegroup