summaryrefslogtreecommitdiffstats
path: root/email/_offlineimaprc
diff options
context:
space:
mode:
Diffstat (limited to 'email/_offlineimaprc')
-rw-r--r--email/_offlineimaprc43
1 files changed, 43 insertions, 0 deletions
diff --git a/email/_offlineimaprc b/email/_offlineimaprc
new file mode 100644
index 0000000..b74910b
--- /dev/null
+++ b/email/_offlineimaprc
@@ -0,0 +1,43 @@
+[general]
+ui = TTY.TTYUI
+accounts = Tharre
+pythonfile=~/.mutt/offlineimap.py
+fsync = False
+
+[Account Tharre]
+localrepository = Tharre-Local
+remoterepository = Tharre-Remote
+status_backend = sqlite
+postsynchook = notmuch new
+
+[Repository Tharre-Local]
+type = Maildir
+localfolders = ~/.mail/tharre3@gmail.com
+nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
+ 'sent': '[Gmail]/Sent Mail',
+ 'flagged': '[Gmail]/Starred',
+ 'trash': '[Gmail]/Trash',
+ 'archive': '[Gmail]/All Mail',
+ }.get(folder, folder)
+
+[Repository Tharre-Remote]
+maxconnections = 8
+type = Gmail
+remoteuser = tharre3@gmail.com
+remotepasseval = get_pass("tharre3@gmail.com")
+realdelete = no
+# Necessary as of OfflineIMAP 6.5.4
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
+ '[Gmail]/Sent Mail': 'sent',
+ '[Gmail]/Starred': 'flagged',
+ '[Gmail]/Trash': 'trash',
+ '[Gmail]/All Mail': 'archive',
+ }.get(folder, folder)
+folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
+ 'Nagios',
+ 'Django',
+ 'Flask',
+ '[Gmail]/Important',
+ '[Gmail]/Spam',
+ ]