Package: offlineimap Version: 6.0.3 Severity: wishlist Tags: patch I appear to have gotten into a habit of when running offlineimap, watching for the first few seconds to see whether my main account has got anything new in the INBOX. I recently changed my offlineimaprc and added another account and the order in which the accounts are synced has changed, and my main account no longer gets synced first. Yes, I realise I'm perhaps rather odd in this respect.
I attach a patch to make offlineimap honour the order of accounts in the "accounts" option. (If you would prefer, my patch is also in my "sync-in-order" branch of git://git.jonnylamb.com/git/offlineimap.git) Kind regards, -- Jonny Lamb, UK [EMAIL PROTECTED]
From c3e31d837fabbbc99bfa403a090c4756e04d493e Mon Sep 17 00:00:00 2001
From: Jonny Lamb <[EMAIL PROTECTED]>
Date: Sun, 19 Oct 2008 15:04:17 +0100
Subject: [PATCH] Respect order of general.accounts config setting.
This makes the order of account synchronisation the same as the order of
the general.accounts setting by using a list instead of a dict, which
was actually pointless as the value of each dict item was never even
looked at.
Signed-off-by: Jonny Lamb <[EMAIL PROTECTED]>
---
offlineimap/init.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/offlineimap/init.py b/offlineimap/init.py
index 8485511..e94c4b6 100644
--- a/offlineimap/init.py
+++ b/offlineimap/init.py
@@ -153,7 +153,7 @@ def startup(versionno):
activeaccounts = activeaccounts.split(",")
allaccounts = accounts.AccountHashGenerator(config)
- syncaccounts = {}
+ syncaccounts = []
for account in activeaccounts:
if account not in allaccounts:
if len(allaccounts) == 0:
@@ -163,7 +163,7 @@ def startup(versionno):
for name in allaccounts.keys():
errormsg += '\n%s'%name
ui.terminate(1, errortitle = 'Unknown Account "%s"'%account, errormsg = errormsg)
- syncaccounts[account] = allaccounts[account]
+ syncaccounts.append(account)
server = None
remoterepos = None
--
1.5.6.5
signature.asc
Description: Digital signature

