Recently we moved our mailing list from Google Groups to Mailman Free Software mailing list manager. The decision was taken cause we need more control on our mailing list and Google Groups is proprietary software.
Setting up mailman wasn’t that hard. The hardest part is to get our whole archive transfered from Google Groups to our Mailman server.
The point was to get an mbox of all our messages, which will later be copied above the new .mbox file in Mailman. To get the messages, I used an IMAP server which has a directory with the stored threads from our mailing list, and the getmail tool.
First install getmail:
apt-get install getmail4
Create the getmail rc file in ~/.getmail/getmail.rc:
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = username
password = password
mailboxes = ("MAILING-LIST-DIRECTORY-NAME",)
[destination]
type = Mboxrd
path = ~/your-mailing-list-name.mbox
Create the mbox file:
touch ~/your-mailing-list-name.mbox
Then run the getmail tool:
getmail -r ~/.getmail/getmail.rc
The resulted mbox file should be copied to your Mailman server (on Debian/Ubuntu I believe it’s in /var/lib/mailman/archives/private/ ), after it just run mmarc with --wipe.
mmarch --wipe your-mailing-list-name /var/lib/mailman/archives/private/your-mailing-list-name.mbox
That’s all folks, now your archives should be totally transfered.
Is it possible to go the other way…load MBOX archives from Mailman into Google Groups?
Thanks!
Can’t say anything about it :(
So does this work for any Google Group which I manage? I’m looking to archive my Google Group to a .mbox file. Or do I need to setup an IMAP server?
Thanks!
@alec,
if you are moving from Google Groups, than all you need is an mbox with the archive of your mailing list. You need no imap server, if the email account you were using already offers imap access.
Just use `getmail` to download the archives as an mbox file and feed that to mailman.
Thats all!
Pingback: 导出 Google Groups | the rhythm