rice

personal dot files and scripts for linux and macOS
Log | Files | Refs | README | LICENSE

commit 27d437c6c3a4de498d6419c1e25b77276c10b827
parent 04bd37b20804e5df2f6841da3dc35b622eb5baa6
Author: Mark Feller <mark@mfeller.io>
Date:   Wed, 30 Dec 2020 11:50:07 -0700

convert from getmail to offlineimap

Diffstat:
Ddots/.config/getmail/getmailrc | 10----------
Adots/.config/offlineimap/config | 21+++++++++++++++++++++
Adots/.config/offlineimap/offlineimap.py | 5+++++
3 files changed, 26 insertions(+), 10 deletions(-)

diff --git a/dots/.config/getmail/getmailrc b/dots/.config/getmail/getmailrc @@ -1,10 +0,0 @@ -[retriever] -type = SimplePOP3SSLRetriever -server = pop.gmail.com -username = mark@getsunday.com -port = 995 -password_command = ("pash", "show", "gmail") - -[destination] -type = Maildir -path = ~/Documents/mail/ diff --git a/dots/.config/offlineimap/config b/dots/.config/offlineimap/config @@ -0,0 +1,21 @@ +[general] +accounts = MfellerIo +metadata = $XDG_CONFIG_HOME/offlineimap/offlineimap +pythonfile = $XDG_CONFIG_HOME/offlineimap/offlineimap.py + +[Account MfellerIo] +localrepository = MfellerLocal +remoterepository = MfellerRemote + +[Repository MfellerRemote] +type = IMAP +remotehost = mail.mfeller.io +remoteuser = mark +remotepasseval = get_pass("bsd-mark") +sslcacertfile = /usr/local/etc/openssl/cert.pem +ssl = yes + +[Repository MfellerLocal] +type = Maildir +localfolders = ~/Documents/mail +restoreatime = no diff --git a/dots/.config/offlineimap/offlineimap.py b/dots/.config/offlineimap/offlineimap.py @@ -0,0 +1,5 @@ +#! /usr/bin/env python2 +from subprocess import check_output + +def get_pass(account): + return check_output("pash show " + account, shell=True).splitlines()[0]