summaryrefslogtreecommitdiff
path: root/offlineimap/offlineimaprc.example
diff options
context:
space:
mode:
Diffstat (limited to 'offlineimap/offlineimaprc.example')
-rw-r--r--offlineimap/offlineimaprc.example24
1 files changed, 14 insertions, 10 deletions
diff --git a/offlineimap/offlineimaprc.example b/offlineimap/offlineimaprc.example
index 0c5ed5e..9133516 100644
--- a/offlineimap/offlineimaprc.example
+++ b/offlineimap/offlineimaprc.example
@@ -3,19 +3,23 @@ accounts = Main
pythonfile=/etc/local-COMMON/offlineimap/offlineimap.py
[Account Main]
-localrepository = Local
-remoterepository = Remote
+localrepository = Main-here
+remoterepository = Main-there
-[Repository Local]
-type = Maildir
-localfolders = ~/Maildir
+#[Repository Main-here]
+#type = Maildir
+#localfolders = ~/Maildir
+[Repository Main-here]
+type = IMAP
+preauthtunnel = /usr/lib/dovecot/imap 2>/dev/null
+holdconnectionopen = yes
-[Repository Remote]
+[Repository Main-there]
type = IMAP
-preauthtunnel = ssh -C -q jonas@mail.jones.dk '/usr/local/bin/localimap'
+preauthtunnel = ssh -C -q jonas@mail.jones.dk /usr/lib/dovecot/imap 2>/dev/null
# Mimic dovecot Maildir setup: Add leading dot to all folders but INBOX
-nametrans = lambda foldername: re.sub('^\.INBOX$', '.', '.' + foldername)
+#nametrans = lambda foldername: re.sub('^\.INBOX$', '.', '.' + foldername)
-# Avoid Trash, Junk and other non-important folders
-folderfilter = lambda foldername: foldername not in imapnoise
+# Ignore odd folders
+folderfilter = most