Strange Behaviour

Johannes Stezenbach js at
Fri Nov 19 19:25:00 GMT 2010

On Fri, Nov 19, 2010 at 06:52:18PM +0100, Nicolas Sebrecht wrote:
> On Fri, Nov 19, 2010 at 04:27:40PM +0100, Johannes Stezenbach wrote:
> > The same mail will get different UIDs on each IMAP server,
> > and the UID is used in the local maildir to identify the mail,
> > for detecting added/removed mails.  So I think what you try
> > can't work.
> How is build this UUID ? I guess, we may use a sha1 of the body of the
> mail to fix this.

It's not a UUID, but a UID.  It's a 32bit integer value
assigned by the server.  Since the point of the UID is
to indentify a message on the server, a locally generated
UUID is not useful, you would have to upload the change
to the server, which is too expensive.

(The UIDVALIDITY handling is explained in the offlineimap
man page.)

IIRC the UID is encoded in the message filename in the
local maildir.  One way to support multiple servers in
one maildir would be to extend the naming to add
the account name for the IMAP server.  Well, maybe there's
more to it, I don't have the spare brain cycles to think
about it in depth...  I'm also not sure it this is
really a good idea.

Maybe a better solution would be to create the merged
mailbox using symlinks.  Or use something like


More information about the OfflineIMAP-project mailing list