overview
you need
- an email-adress with imap access i tested it with gmail only.
- a server where you can run a python script
- apache or some other webserver serving html pages
basically you have to modify the default configs and then start cronjob/mailog.py in daemon mode. maybe you have to change directory/file permissions because mailog needs to write html files.
adapting configs
create those configs:
- htdocs/static/config.js
- cronjob/config.py
you can copy the config_template.* - files and adapt those:
file permissions
the necessary permissions for mailog.py are:
- template/* read-only
- htdocs/* read, write and create files
start mailog
execute cronjob/mailog.py every 30 seconds by starting it with the --daemon parameter:
$ cronjob/mailog.py --daemon # process mailbox every 30 seconds
advanced
security
- you should change the +post email-part to some random string to make your blog secure.
- the cronjob/ directory should not be accessible to the webserver.
reseting your blog page
this will delete all html pages of your blog. mainly HTDOCS/posts/ and HTDOCS/comments/ get emptied.
this will NOT touch your mailbox
execute cronjob/mailog.py with the --reset parameter:
$ cronjob/mailog.py --rest # DANGER THIS DELETES ALL YOUR CONTENT