aboutsummaryrefslogtreecommitdiff
path: root/files/.offlineimaprc
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2013-10-18 21:00:48 +0600
committerAnton Bobov <abobov@gmail.com>2013-10-19 00:47:57 +0600
commitad704b4b8b15765b93e385c7431b19202b0bbe71 (patch)
tree6488a6bceec06779ea1bb85c87a34277c37e3e62 /files/.offlineimaprc
parent0feed796b4c309b460295443aa849ce1f9b98565 (diff)
Mail related changes.
Add offlineimap and msmtp configs. Cleanup mutt configs. Changes inspired by Steve Losh post: http://stevelosh.com/blog/2012/10/the-homely-mutt/.
Diffstat (limited to 'files/.offlineimaprc')
-rw-r--r--files/.offlineimaprc36
1 files changed, 36 insertions, 0 deletions
diff --git a/files/.offlineimaprc b/files/.offlineimaprc
new file mode 100644
index 0000000..94a9a4c
--- /dev/null
+++ b/files/.offlineimaprc
@@ -0,0 +1,36 @@
+[general]
+accounts = Gmail
+socktimeout = 60
+fsync = False
+
+[Account Gmail]
+localrepository = LocalGmail
+remoterepository = RemoteGmail
+status_backend = sqlite
+postsynchook = notmuch new
+
+[Repository LocalGmail]
+type = Maildir
+localfolders = ~/Mail/Gmail
+nametrans = lambda folder: { 'drafts': '[Gmail]/Drafts',
+ 'sent': '[Gmail]/Sent Mail',
+ 'flagged': '[Gmail]/Starred',
+ 'archive': '[Gmail]/All Mail',
+ }.get(folder, folder)
+
+[Repository RemoteGmail]
+type = Gmail
+maxconnections = 1
+# Password stored in ~/.netrc
+remoteuser = abobov@gmail.com
+realdelete =no
+nametrans = lambda folder: { '[Gmail]/Drafts': 'drafts',
+ '[Gmail]/Sent Mail': 'sent',
+ '[Gmail]/Starred': 'flagged',
+ '[Gmail]/All Mail': 'archive',
+ }.get(folder, folder)
+folderfilter = lambda folder: folder not in [ '[Gmail]/Spam',
+ '[Gmail]/Starred',
+ '[Gmail]/Trash',
+ '[Gmail]/Important',
+ ]