diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-10-13 14:28:52 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-10-13 14:28:52 +0000 |
commit | 4cfb862a5a6092b168a29c81f0d51d1ccb6073ec (patch) | |
tree | 5111862fcef5d96b7ca56e03c670691a4f3c6178 | |
parent | ef52e56e7243e02fe21dbb28551bbe303f0c0596 (diff) |
Add sample offlineimap config.
-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 |