jzting / ohlife-replacement

ohlife was an email-based diary thing that shutdown in October 2014. This aims to do basically the same thing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ohlife-replacement

ohlife was an email-based diary thing that shutdown in October 2014. This aims to do basically the same thing.

You need an email address for this. I'm using gmail.

Create a file called email_credentials.py that looks like this:

def email_credentials():
    mailhost = "smtp.gmail.com"
    fromaddr = "XXX@gmail.com"
    replytoaddr = "OhLife <XXX@cloudmailin.net>"
    toaddrs = ["YYY"]
    credentials = ("XXX", "ZZZ")
    return mailhost, fromaddr, replytoaddr, toaddrs, credentials

Run the import.py script with your ohlife.txt export file:

python import.py ohlife_export.txt

Set up a web server to run listen.py. I'm just using the flask development server inside a tmux session. I bought a $1.25 a month plan from ipxcore.

Sign up for an account at cloudmailin or equivalent. Basically you want something that converts email to an http post. Send the http post to the webserver in the previous step.

Set up a daily cron job to run ohlife.py.

When ohlife.py sends you an email, reply to the cloudmailin email address.

Enjoy.

About

ohlife was an email-based diary thing that shutdown in October 2014. This aims to do basically the same thing.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%