mail2blog
Save mail to file for blog.
You can use as blog system ablog (http://ablog.readthedocs.org/)
Installation
- ::
- pip install mail2blog
Or
- ::
- git clone https://github.com/fraoustin/mail2blog.git cd mail2blog python setup.py install
Use
Usage: mail2blog.py [options] args mail to blog: save attachement in blog path and del mail Options: --version show program's version number and exit -h, --help show this help message and exit -l LEVEL, --level-log=LEVEL level of log -d LOGFILE, --path-log=LOGFILE directory of log file -c CONF, --path-conf=CONF path of conf.py by Frederic Aoustin
Insert in your conf.py of blog
# mail2blog mail2blog_imap = 'imap.gmail.com' #default imap.gmail.com mail2blog_mailbox = 'mailfor.blog@gmail.com' mail2blog_mailbox_password = 'yourpassword' mail2blog_user_authorized = ['writerforblog@gmail.com'] mail2blog_bck_path = './bkp' mail2blog_fork_path = {'.rst' : '.', '.jpg' : './images', '.png' : './images', '.zip' : './datas'} mail2blog_smtp = 'smtp.gmail.com' #default smtp.gmail.com mail2blog_smtp_port = 587 #default 587 mail2blog_smtp_not_ssl = False #default False) mail2blog_smtp_login = 'mailfor.blog@gmail.com' mail2blog_smtp_password = 'yourpassword' mail2blog_smtp_from = 'mailfor.blog@gmail.com' mail2blog_build = True #default False ablog_builddir = "/path/of/website" # if you want build website
Note
root path for source files is path to the folder that contains conf.py