fusch.online

git / lists / casts

git.fusch.online/sagenwollen

Turn an email into a html page
git clone git://git.fusch.online/sagenwollen
Log / Files / Readme / License / Issues

sagenwollen

Turn an email into a html page.

make
cat email.txt | ./sagenwollen > index.html

I am using opensmtpd and have something like this in /etc/smtpd.conf to generate a static site by sending an email to it:

accept from any for domain "example.com" alias <aliases> deliver to mda "/usr/local/bin/sagenwollen > /var/www/example.com/index.html" as user

where /var/www/example.com/index.html is being served by an http server.