Format mbox as HTML/XML
a632a4cc — Nguyễn Gia Phong 1 year, 8 months ago
Stop adding spaces to author name
31dcce48 — Nguyễn Gia Phong 1 year, 8 months ago
Expose the original RFC 822 date
252a1b94 — Nguyễn Gia Phong 1 year, 8 months ago
Fix payload rendering



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


This tiny script formats an mbox as HTML or XML. It is intended for rendering email replies on websites and their RSS feed.


This Python package depends on bleach for HTML sanitising and markdown for, well, rendering Markdown to HTML. It is, however, not designed to work with HTML emails with all those CSS and Java scripts.


It is recommended to install this package from a downstream repository, such as Nix or IPWHL.


$ formbox --help
usage: formbox [-h] mbox id template

format mbox as HTML/XML

positional arguments:
  mbox        path to mbox file
  id          root message ID
  template    path to template

optional arguments:
  -h, --help  show this help message and exit


This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.