Two accounts, one maildir.

Johannes Stezenbach js at sig21.net
Wed Dec 1 15:20:21 UTC 2010


On Wed, Dec 01, 2010 at 02:52:47PM +0100, Sebastian Spaeth wrote:
> 
> It is a good question. Let us assume you have 2 accounts for:
>  A1: Imap1 <-> Maildir1
>  A2: Imap2 <-> Maildir1
> 
> Assume there is one mail on each IMAP account:
> M1 on IMAP1 has UID1
> M2 on IMAP2 has UID2
> 
> Lets sync:
> 
> +-------+---------+-------+----------------+----------------+
> | IMAP1 | Maildir | IMAP2 | LocalStatus A1 | LocalStatus A2 |
> +-------+---------+-------+----------------+----------------+
> | UID1  |         | UID2  |                |                |1
> +-------+---------+-------+----------------+----------------+
> | UID1  |  UID1   | UID2  | UID1           |                |2
> +-------+---------+-------+----------------+----------------+
> | UID1  |  UID1   | UID2  | UID1           | UID2           |3
> |       |  UID2   |       |                |                | 
> +-------+---------+-------+----------------+----------------+
> Step 1: Initial situation
> Step 2: Sync A1: M1 with UID1 gets transferred to Maildir 
> Step 3: Sync A2: M2 with UID2 gets transferred to Maildir

Actually M1 will be also synced to IMAP2 in this step.

However, I have no idea what happens if you have two different
mails in IMAP1 and IMAP2 which have the same UID.  Potentially
one overwrites the other...


Johannes



More information about the OfflineIMAP-project mailing list