Giter VIP home page Giter VIP logo

googlegroup-archiver's Introduction

Google Group Archiver

This is a small tool to create a HTML archiver for an existing Google Group, which can import existing mails and update new mails regularly.

Dependencies:

  • Python 2
  • GNU Mailman
  • Gmail

Install

  1. Prepare Group Subscriber
  • Create a Gmail account (do not use a precious password)
  • Subscribe to your Google Group
  • Create a filter that matches "to:(listname@googlegroups)" and label it with your listname (no whitespace please)
  1. Download History Mails
  • python migrate.py
  • choose "d" to download from YOUR Gmail account
  • choose "m" to convert box format to mbox format
  • (You can use any other E-mail client to download mbox)
  1. Setup Mailman
  • Install GNU Mailman
  • Apply the patches if you like (see below).
  • Create a new list in Mailman (listname should be exactly the same, while admin mail and password do not matter): /usr/lib/mailman/bin/newlist
  • Import history mails: /usr/lib/mailman/bin/arch listname history-mbox-file
  1. Setup Crontab
  • Modify cron.sh script, set variables LISTS, EMAIL and PASSWORD
  • Add crontab to a user with mailman permissions (e.g. root) which runs cron.sh every 15 minutes: */15 * * * * /absolute/path/to/cron.sh
  1. Setup Web Server
  • Nginx for example:
location /pipermail { alias /var/lib/mailman/archives/public; autoindex on; }

Patch for Mailman

Modifications made to Mailman (modified files are given in their entirety):

  • GBK handling: HyperArch.py => /usr/lib/mailman/Mailman/Archiver/HyperArch.py
  • Remove unused HTML elements: template => /var/lib/mailman/templates/en/

If you modified the templates, HTMLs have to be rebuilt:

  • /usr/lib/mailman/bin/arch --wipe listname history-mbox-file
  • python migrate.py to convert listname-full.box (containing all mails received by cron.sh) to mbox format
  • /usr/lib/mailman/bin/arch listname listname-full.mbox

googlegroup-archiver's People

Contributors

bojieli avatar

Watchers

James Cloos avatar jactry avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.