This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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

Release History

Release History

This version
History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
mail2blog-0.2.4.tar.gz (12.7 kB) Copy SHA256 Checksum SHA256 Source Oct 13, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting