diff options
author | Amin Bandali <amin@aminb.org> | 2018-04-29 01:23:20 -0400 |
---|---|---|
committer | Amin Bandali <amin@aminb.org> | 2018-04-29 01:23:20 -0400 |
commit | 25869427afed90745b6b65cc6072c24caa2d8373 (patch) | |
tree | c0759702901f0cb74c7948bfe254283c368594fe /offlineimap | |
parent | 590276739114ee21891a9aab06a05938d80db544 (diff) | |
download | configs-25869427afed90745b6b65cc6072c24caa2d8373.tar.gz configs-25869427afed90745b6b65cc6072c24caa2d8373.tar.xz configs-25869427afed90745b6b65cc6072c24caa2d8373.zip |
[rc/{notmuch,offlineimap}] migrate to new literate setup
Diffstat (limited to '')
-rw-r--r-- | offlineimap/.offlineimap.py | 34 | ||||
-rw-r--r-- | offlineimap/.offlineimaprc | 42 |
2 files changed, 0 insertions, 76 deletions
diff --git a/offlineimap/.offlineimap.py b/offlineimap/.offlineimap.py deleted file mode 100644 index 3b89349..0000000 --- a/offlineimap/.offlineimap.py +++ /dev/null @@ -1,34 +0,0 @@ -import os -import subprocess - -def mailpasswd(acct): - acct = os.path.basename(acct) - path = "/home/amin/.passwd/%s.gpg" % acct - args = ["gpg", "--use-agent", "--quiet", "--batch", "-d", path] - try: - return subprocess.check_output(args).strip() - except subprocess.CalledProcessError: - return "" - -def mailuser(acct): - acct = os.path.basename(acct) - path = "/home/amin/.passwd/%s" % acct - args = ["cat", path] - try: - return subprocess.check_output(args).strip() - except subprocess.CalledProcessError: - return "" - -def prime_gpg_agent(): - ret = False - i = 1 - while not ret: - ret = (mailpasswd("prime") == "prime") - if i > 2: - from offlineimap.ui import getglobalui - sys.stderr.write("Error reading in passwords. Terminating.\n") - getglobalui().terminate() - i += 1 - return ret - -prime_gpg_agent() diff --git a/offlineimap/.offlineimaprc b/offlineimap/.offlineimaprc deleted file mode 100644 index 60d9801..0000000 --- a/offlineimap/.offlineimaprc +++ /dev/null @@ -1,42 +0,0 @@ -[general] -pythonfile = ~/.offlineimap.py -accounts = Gmail, aminb -maxsyncaccounts = 3 - -[Account Gmail] -localrepository = GmailL -remoterepository = GmailR - -[Account aminb] -localrepository = aminbL -remoterepository = aminbR - -[Repository GmailL] -type = Maildir -localfolders = ~/Maildir/Gmail - -[Repository GmailR] -type = IMAP -remotehost = imap.gmail.com -remoteusereval = mailuser("gmail") -remotepasseval = mailpasswd("gmail") -sslcacertfile = /etc/ssl/certs/ca-certificates.crt -ssl = yes -folderfilter = lambda foldername: foldername not in '[Gmail]/All Mail' -maxconnections = 1 -realdelete = no - -[Repository aminbL] -type = Maildir -localfolders = ~/Maildir/aminb - -[Repository aminbR] -type = IMAP -remotehost = mail.aminb.org -remoteusereval = mailuser("aminb") -remotepasseval = mailpasswd("aminb") -sslcacertfile = /etc/ssl/certs/ca-certificates.crt -ssl = yes -folderfilter = lambda foldername: foldername not in 'dovecot.sieve' -maxconnections = 1 -realdelete = no |