XMPP MAM backup utility
Optional target jid
Use new blather branch to avoid trying to register before login

You can also use your local clone with git send-email.

#XMPP MAM Backup Tool

To be run in cron or otherwise to keep a full record of all MAM data on an account.

bundle install --path=.gems
bundle exec ruby mam_backup.rb user@example.com password >> mam.xml