Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

save mail for blog

Project description

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

0.2.3

manage by pylint

0.2.3

manage version

0.2.2

manage error with crontab (without terminal)

correction of README

0.2.1

use module myterm for OptionParser ang logger

manage setup.py

add parameter in conf.py

add build ablog

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mail2blog-0.2.4.tar.gz (12.7 kB) Copy SHA256 hash SHA256 Source None Oct 13, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page