aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2014-02-23 17:15:03 +0100
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2014-02-23 17:15:03 +0100
commitdb757a8bd17afaf45bb354f3c58f6922f1aa486a (patch)
tree5d6b08de9be49d2723fa1517bd19daab72d7989b
parent4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46 (diff)
downloaddotfiles-db757a8bd17afaf45bb354f3c58f6922f1aa486a.tar.gz
dotfiles-db757a8bd17afaf45bb354f3c58f6922f1aa486a.tar.bz2
dotfiles-db757a8bd17afaf45bb354f3c58f6922f1aa486a.zip
Added offline imap config
-rw-r--r--offlineimaprc44
1 files changed, 44 insertions, 0 deletions
diff --git a/offlineimaprc b/offlineimaprc
new file mode 100644
index 0000000..209cb7d
--- /dev/null
+++ b/offlineimaprc
@@ -0,0 +1,44 @@
+[general]
+ui = ttyui
+accounts = Gmail
+# This will suppress anything but errors
+ui = quiet
+
+
+[Account Gmail]
+localrepository = Gmail-Local
+remoterepository = Gmail-Remote
+# Minutes between syncs
+autorefresh = 5
+# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
+# only changes were to IMAP flags
+quick = 10
+
+[Repository Gmail-Local]
+type = Maildir
+localfolders = ~/.mail/Gmail
+nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
+ 'sent': '[Gmail]/Sent Mail',
+ 'flagged': '[Gmail]/Starred',
+ 'trash': '[Gmail]/Trash',
+ 'spam': '[Gmail]/Spam',
+ 'archive': '[Gmail]/All Mail',
+ }.get(folder, folder)
+
+
+[Repository Gmail-Remote]
+type = Gmail
+remoteuser = vasil.zlatanov@gmail.com
+remotepass = ****
+realdelete = no
+maxconnections = 1
+sslcacertfile = /etc/ssl/certs/ca-certificates.crt
+nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
+ '[Gmail]/Sent Mail': 'sent',
+ '[Gmail]/Starred': 'flagged',
+ '[Gmail]/Trash': 'trash',
+ '[Gmail]/Spam': 'spam',
+ '[Gmail]/All Mail': 'archive',
+ }.get(folder, folder)
+
+