Then, I just ran: cat old_archive | formail -Y -s procmail procmailrc. That’s it. formail splits the mbox file, and runs each one through procmail, which adds [old] to the subject, and forwards it along to gMail. Nice and simple. It even runs all my old stuff through my current spam filter, which catches a lot of stuff that was still lying around.

Updates: It didn’t work quite right the first time. It was merging some messages together, and doing weird stuff. The -Y option to formail fixes that, at least with my mbox file. Also, it goes MUCH faster if I disable the spamassassin stuff, so that’s what I’m doing the second time around. I’ll let Google catch the spam for me.

Worked for me like a charm, I’m glad to have found a bash script which dealt directly with unix email capabilities. I’m used to working with Postfix and maildrop, so seeing how you used procmail here was cool.