git / lists / casts


Maildir to static html converter
git clone git://git.fusch.online/minbox
Log / Files / Readme / License / Issues


Render messages as static html


$ git clone https://git.fusch.online/minbox.git
$ cd minbox
$ go build
$ go install


Using the fantastic mblaze, creating a sorted, threaded listing of all mails in <maildir> is as simple as:

$ mlist <maildir> | msort -d | mthread | minbox in.html > index.html

A maildir can also be passed by using the -m flag:

$ minbx -m <maildir> in.html > index.html

in.html is a required go html template. Copy and edit it to get the desired output.

Render Flags

-B          generate an mbox file containing all mails (inbox.mbox)
-F          generate an rss/atom file (atom.xml)
-H          generate a raw text file for each message (message-hash.txt)
-I          generate a raw text file for each message (message-id.txt)

RSS Option Flags

-a "auhor"
-e "email"
-d "description"
-l "link"