]> code.delx.au - offlineimap/commit
Bug#502779: Sync accounts in order of general.accounts option
authorJonny Lamb <jonny@debian.org>
Tue, 5 May 2009 19:47:11 +0000 (20:47 +0100)
committerJohn Goerzen <jgoerzen@complete.org>
Tue, 5 May 2009 20:16:25 +0000 (15:16 -0500)
commit2e22b4123190c8ae434efb2bfb3d507694482644
tree936b2b6ec2aeb452d414eb8773de5b7a993c3df6
parent817c09a4607f45635a6f327cebc593e396723514
Bug#502779: Sync accounts in order of general.accounts option

On Tue, Apr 21, 11:19:00 -0500, John Goerzen wrote:
> I think the one loss of functionality we have here is that it doesn't
> check if a given account has already been listed before adding to the
> list.  Should be a simple tweak.  If you could tweak that and test, I'd
> apply a new patch.

Good catch. I attach an updated patch which I've tested and it appears
to work fine, including not syncing two accounts twice.

Thanks,

--
Jonny Lamb, UK
jonny@debian.org

From 7f348ee116bba64f7330e28d4e7b2c015910a890 Mon Sep 17 00:00:00 2001
From: Jonny Lamb <jonny@debian.org>
Date: Tue, 05 May 2009 20:45: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 <jonny@debian.org>
offlineimap/init.py