Skip to content

Instantly share code, notes, and snippets.

@slinkp
Created November 8, 2010 21:42
Show Gist options
  • Save slinkp/668317 to your computer and use it in GitHub Desktop.
Save slinkp/668317 to your computer and use it in GitHub Desktop.
google-groups-forwarder.rc
# Hacky way to import an mbox archive into a google group.
# Use this like so:
# formail -t -s procmail google-groups-forwarder.rc < foo.mbox
# Limitations: archives are not sorted by date.
SHELL=/bin/sh
VERBOSE=yes
MAILDIR=/tmp/Mail #you better make sure it exists
LOGFILE=/tmp/procmail.log #recommended
:0
* ^TO.*old-list-address.*
{
:0 c
! [email protected]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment