diff options
Diffstat (limited to '')
-rw-r--r-- | .offlineimap.py | 20 | ||||
-rw-r--r-- | .offlineimaprc | 116 |
2 files changed, 0 insertions, 136 deletions
diff --git a/.offlineimap.py b/.offlineimap.py deleted file mode 100644 index b5a73dd..0000000 --- a/.offlineimap.py +++ /dev/null @@ -1,20 +0,0 @@ -import offlineimap -import re - -prioritized = ['INBOX', 'QueensU.INBOX'] - -def mycmp(x, y): - for prefix in prioritized: - if offlineimap.__version__ < '6.4': - xsw = x.startswith(prefix) - ysw = y.startswith(prefix) - else: - xsw = x.visiblename.startswith(prefix) - ysw = y.visiblename.startswith(prefix) - if xsw and ysw: - return cmp(x, y) - elif xsw: - return -1 - elif ysw: - return +1 - return cmp(x, y) diff --git a/.offlineimaprc b/.offlineimaprc deleted file mode 100644 index 10a300d..0000000 --- a/.offlineimaprc +++ /dev/null @@ -1,116 +0,0 @@ -# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to -# suit to get started fast. - -[general] -metadata = ~/.offlineimap -accounts = GMAIL, QueensU, CMU, CMUSCS -#, GMAIL -pythonfile=~/.offlineimap.py -maxsyncaccounts = 5 -sslcacertfile = SSL_CERTS - -#### GMAIL Account Settings -[Account GMAIL] -localrepository = LocalGmail -remoterepository = RemoteGmail -autorefresh = 20 -quick = 10 -presynchook = imapfilter -c /home/ryan/.imapfilter/config.lua -postsynchook = imapfilter -c /home/ryan/.imapfilter/config.lua && /home/ryan/bin/run-mailcheck && notmuch new -foldersort = mycmp - -[Repository LocalGmail] -type = IMAP -remotehost = localhost -remoteuser = ryan -remotepass = LOCAL_PASS -# Don't try to sync local changes to [Google Mail]/Chat remotely, it's read-only -# on Gmail's end. -folderfilter = lambda folder: True not in map(lambda x: folder.startswith(x), ['MIT', 'QueensU', 'McGill', 'McGSOCS', 'CMU', 'SCS', '[Google Mail]/All Mail', '[Google Mail]/Important', '[Google Mail]/Chat']) -idlefolders = ['INBOX'] - -[Repository RemoteGmail] -foldersort = lambda x, y: mycmp(x, y) -type = Gmail -maxconnections = 4 -remoteuser = ryanakca@gmail.com -remotepass = GMAIL_PASS -spamfolder = [Google Mail]/Spam -trashfolder = [Google Mail]/Bin -realdelete = no -folderfilter = lambda folder: True not in map(lambda x: folder.startswith(x), ['MIT', 'QueensU', 'McGill', 'McGSOCS', 'CMU', 'SCS', '[Google Mail]/All Mail', '[Google Mail]/Important']) -idlefolders = ['INBOX'] -sslcacertfile = SSL_CERTS - -##### QueensU mail -[Account QueensU] -localrepository = LocalQueensU -remoterepository = RemoteQueensU -autorefresh = 20 -quick = 10 -# presynchook = imapfilter -foldersort = lamba x, y: cmp(x, y) -postsynchook = /home/ryan/bin/run-mailcheck && notmuch new - -[Repository RemoteQueensU] -foldersort = lambda x, y: cmp(y, x) -type = IMAP -remoteuser = 9rak@queensu.ca -remotehost = pod51018.outlook.com -remotepass = QUEENSU_PASS -remoteport = 993 -ssl = yes -sslcacertfile = SSL_CERTS -# Add QueensU prefix when copying to local -nametrans = lambda foldername: 'QueensU.' + foldername - -[Repository LocalQueensU] -type = IMAP -remotehost = localhost -remoteuser = ryan -remotepass = LOCAL_PASS -# Only copy folders from local to remote if they start with QueensU -folderfilter = lambda folder: folder.startswith('QueensU.') -# Remove QueensU prefix when copying to remote -nametrans = lambda folder: re.sub('^QueensU.', '', folder) - -##### CMU mail -[Account CMU] -localrepository = LocalCMU -remoterepository = RemoteCMU -autorefresh = 20 -quick = 10 -# presynchook = imapfilter -foldersort = lamba x, y: cmp(x, y) -postsynchook = /home/ryan/bin/run-mailcheck && notmuch new - -[Repository RemoteCMU] -foldersort = lambda x, y: mycmp(x, y) -type = Gmail -maxconnections = 4 -remoteuser = rkavanag@andrew.cmu.edu -remotepass = CMU_PASS -spamfolder = [GMAIL].Spam -trashfolder = [GMAIL].Bin -realdelete = no -sslcacertfile = SSL_CERTS -nametrans = lambda foldername: 'CMU.' + foldername - -[Repository LocalCMU] -type = IMAP -remotehost = localhost -remoteuser = ryan -remotepass = LOCAL_PASS -folderfilter = lambda folder: folder.startswith('CMU.') -nametrans = lambda folder: re.sub('^CMU.', '', folder) - -[mbnames] -enabled = no -filename = .muttrc.mailboxes -header = "mailboxes " -peritem = "+%(foldername)s" -sep = " " -footer = "\n" - -[ui.Curses.Blinkenlights] -statuschar = % |