Re: 2.4.7 complains about mails named '0.'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux