diff options
-rw-r--r-- | offlineimap/offlineimap.py | 5 | ||||
-rw-r--r-- | offlineimap/offlineimaprc.example | 21 |
2 files changed, 26 insertions, 0 deletions
diff --git a/offlineimap/offlineimap.py b/offlineimap/offlineimap.py new file mode 100644 index 0000000..6171a65 --- /dev/null +++ b/offlineimap/offlineimap.py @@ -0,0 +1,5 @@ +# Frequently used mailboxes (the rest is only sync'ed in *_all targets) +inboxes = ['INBOX', 'Drafts', 'Templates', 'Sent', 'Sendt post', 'done'] + +# mbox is INBOX showing up double on UW-imap servers... +imapnoise = ['mbox', 'spam', 'Junk', 'Trash'] diff --git a/offlineimap/offlineimaprc.example b/offlineimap/offlineimaprc.example new file mode 100644 index 0000000..ce02ea2 --- /dev/null +++ b/offlineimap/offlineimaprc.example @@ -0,0 +1,21 @@ +[general] +accounts = Main +pythonfile=~/.offlineimap.py + +[Account Main] +localrepository = Local +remoterepository = Remote + +[Repository Local] +type = Maildir +localfolders = ~/Maildir + +[Repository Remote] +type = IMAP +preauthtunnel = ssh -C -q jonas@mail.jones.dk '/usr/local/bin/localimap' + +# Mimic dovecot Maildir setup: Add leading dot to all folders but INBOX +nametrans = lambda foldername: re.sub('^\.INBOX$', '.', '.' + foldername) + +# Avoid Trash, Junk and other non-important folders +folderfilter = lambda foldername: foldername not in imapnoise |