From: Don Armstrong Date: Mon, 15 Feb 2016 02:24:49 +0000 (-0600) Subject: switch offlineimaprc to single account with everything in subdirs X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d0024c6557db77d98f26251421e7c1e0c09f5261;p=mail.git switch offlineimaprc to single account with everything in subdirs --- diff --git a/.offlineimaprc b/.offlineimaprc index 25df85e..cffa065 100644 --- a/.offlineimaprc +++ b/.offlineimaprc @@ -1,17 +1,19 @@ +# -*- mode: conf -*- [general] -accounts = Inbox, Bugs, Lists, Spam, Jobs -# sync three accounts at once -#maxsyncaccounts = 3 +accounts = Inbox +maxsyncaccounts = 10 ui = TTYUI +status_backend=sqlite [Account Inbox] localrepository = LocalInbox remoterepository = RemoteInbox +quick=10 [Repository LocalInbox] type = Maildir -localfolders = ~/Mail +localfolders = ~/Mail/ [Repository RemoteInbox] type = IMAP @@ -19,99 +21,6 @@ remotehost = linnode.donarmstrong.com remoteuser = don ssl = yes createfolders = False -folderfilter = lambda foldername: not re.search('(^(lists|bugs|jobs|archives|spam|customflags)|/\.)', foldername) -preauthtunnel = ssh -q linnode.donarmstrong.com '/usr/lib/dovecot/imap -o mail_location=maildir:/home/don/Maildir:INBOX=/home/don/Maildir' - - -[Account Lists] -localrepository = LocalLists -remoterepository = RemoteLists - -[Repository LocalLists] -type = Maildir -localfolders = ~/Mail/lists - -[Repository RemoteLists] -type = IMAP -createfolders = False -remotehost = linnode.donarmstrong.com -remoteuser = don -ssl = yes -#reference = Mail -## Trims off the preceeding Mail on all the folder names. -nametrans = lambda foldername: \ - re.sub('^lists.?', '', foldername) -# Yeah, you have to mention the Mail dir, even though it -# would seem intuitive that reference would trim it. -folderfilter = lambda foldername: not re.search('(^(oftc|archives|jobs|INBOX|TODO|chili_alarm|bdo_role|0_ldo_role|buildd|spam|outbox|bugs|postponed|customflags|Trash|Drafts))', foldername) -preauthtunnel = ssh -q linnode.donarmstrong.com '/usr/lib/dovecot/imap -o mail_location=maildir:/home/don/Maildir:INBOX=/home/don/Maildir' - -[Account Bugs] -localrepository = LocalBugs -remoterepository = RemoteBugs - -[Repository LocalBugs] -type = Maildir -localfolders = ~/Mail/bugs - -[Repository RemoteBugs] -type = IMAP -createfolders = False -remotehost = linnode.donarmstrong.com -remoteuser = don -ssl = yes -#reference = Mail -## Trims off the preceeding Mail on all the folder names. -nametrans = lambda foldername: \ - re.sub('^bugs.?', '', foldername) -# Yeah, you have to mention the Mail dir, even though it -# would seem intuitive that reference would trim it. -folderfilter = lambda foldername: not re.search('(^(oftc|lists|jobs|INBOX|TODO|chili_alarm|bdo_role|0_ldo_role|buildd|spam|outbox|archives|postponed|customflags|Trash|Drafts))', foldername) - -preauthtunnel = ssh -q linnode.donarmstrong.com '/usr/lib/dovecot/imap -o mail_location=maildir:/home/don/Maildir:INBOX=/home/don/Maildir' - - - -[Account Spam] -localrepository = LocalSpam -remoterepository = RemoteSpam - -[Repository LocalSpam] -type = Maildir -localfolders = ~/Mail/spam - -[Repository RemoteSpam] -type = IMAP -createfolders = False -remotehost = linnode.donarmstrong.com -remoteuser = don -ssl = yes -#reference = Mail -## Trims off the preceeding Mail on all the folder names. -nametrans = lambda foldername: \ - re.sub('^spam.?', '', foldername) -# Yeah, you have to mention the Mail dir, even though it -# would seem intuitive that reference would trim it. -folderfilter = lambda foldername: not re.search('(^(oftc|lists|jobs|INBOX|TODO|chili_alarm|bdo_role|0_ldo_role|bugs|buildd|outbox|archives|postponed|customflags|Trash|Drafts))', foldername) - -preauthtunnel = ssh -q linnode.donarmstrong.com '/usr/lib/dovecot/imap -o mail_location=maildir:/home/don/Maildir:INBOX=/home/don/Maildir' - -[Account Jobs] -localrepository = LocalJobs -remoterepository = RemoteJobs - -[Repository LocalJobs] -type = Maildir -localfolders = ~/Mail/jobs - -[Repository RemoteJobs] -type = IMAP -remotehost = linnode.donarmstrong.com -remoteuser = don -ssl = yes -createfolders = False - - -folderfilter = lambda foldername: not re.search('(^(oftc|lists|INBOX|TODO|chili_alarm|bdo_role|0_ldo_role|spam|bugs|buildd|outbox|archives|postponed|customflags|Trash|Drafts))', foldername) - preauthtunnel = ssh -q linnode.donarmstrong.com '/usr/lib/dovecot/imap -o mail_location=maildir:/home/don/Maildir:INBOX=/home/don/Maildir' +maxconnections=3 +idlefolders=['INBOX']