add random component to mail name to help clients
re-add content-type to template
use config to determine db and maildir
fix unicode feeds on python 2