2.4.7 complains about mails named '0.'

Bron Gondwana brong at fastmail.fm
Sat Apr 2 08:19:30 EDT 2011


On Sat, Apr 02, 2011 at 12:17:25PM +0200, Wolfgang Breyha wrote:
> Hi!
> 
> On 2011-04-02 11:59, Bron Gondwana wrote:
> > Was there seriously a version of Cyrus that allows UID zero?  That's
> > bogus.  Surely IMAP UIDs start at one.

Hmm... so imapsync created them?  I'll read the code
for 2.3.7 and see how that's even possible.

Ooh... just a guess - but did you have autocreate patches?  I wonder if
autocreate caused uidnext to be zero rather than one due to doing the
append during the same lock as the create...
 
> I found some historic info;-) I used cyrus-imap 2.3.7 back then. I used
> "imapsync" to migrate mailboxes from courier to cyrus. It happend an
> exactly one mailbox, but on several folders there.
> 
> > If UID zero is allowed, I'll have to fix that code - and probably
> > some other code which assumes UIDs are never zero...
> 
> Ok, if that's the case I'll rename that files to the first available UID
> and reconstruct the folder.

Sounds reasonable.  Actually, I think that's probably what reconstruct
should do to the messages (well, NEXT available UID, so that the IMAP
semantics stay correct) when it finds them...

http://bugzilla.cyrusimap.org/show_bug.cgi?id=3433

Bron.

Bron.


More information about the Info-cyrus mailing list