user rename and uidvalidity value

Vladimir Klejch kleo+cyrus at netbox.cz
Wed Nov 5 06:00:59 EST 2014


Hi


partly diskussed in:

https://bugzilla.mozilla.org/show_bug.cgi?id=365651#c4

snip ---

ftp://ftp.rfc-editor.org/in-notes/rfc3501.txt
6.3.5.  RENAME Command
       The value of the highest-used unique identifier of the old mailbox
       name MUST be preserved so that a new mailbox created with the same
       name will not reuse the identifiers of the former incarnation,
       UNLESS the new incarnation has a different unique identifier
       validity value.  See the description of the UID command for more
       detail.


If IMAP server returns same "unique identifier validity value" after 
rename,  IMAP server MUST preserve "highest-used unique identifier".

snip ---




the problem is, where to store the old "highest-used unique identifier" 
for the same mailboxname, if reused  ??

the logical solution is to generate new uidvalidity for renamed mailbox, 
that guarantees, that in case of existing previous mailbox with the same 
name, that the change to other content is recognized ..



 		Cheers
 					Kleo


On Wed, 5 Nov 2014, Hamada, Ondrej wrote:

> Hi,
> Can you please explain to me, why is a new value of uidvalidity generated when a user is renamed in cyrus_imapd?
>
> Rename:
> A001 rename user/a at bbb.c<mailto:user/a at bbb.c>om user/x at bbb.com
>
> Before rename:
> A001 select inbox
> * OK [CLOSED] Ok
> * 3 EXISTS
> * 0 RECENT
> * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
> * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] Ok
> * OK [UNSEEN 2] Ok
> * OK [UIDVALIDITY 1415092196] Ok
> * OK [UIDNEXT 4] Ok
> * OK [HIGHESTMODSEQ 5] Ok
> * OK [URLMECH INTERNAL] Ok
> A001 OK [READ-WRITE] Completed
>
> After rename:
> A001 select inbox
> * 3 EXISTS
> * 0 RECENT
> * FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
> * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)] Ok
> * OK [UNSEEN 2] Ok
> * OK [UIDVALIDITY 1415093437] Ok
> * OK [UIDNEXT 4] Ok
> * OK [HIGHESTMODSEQ 7] Ok
> * OK [URLMECH INTERNAL] Ok
> A001 OK [READ-WRITE] Completed
>
> Thank you in advance,
>
> Ondra
>
> ________________________________
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.
>

-- 
_____________________________________________________________
|      You have moved the mouse.                              #
| Windows must be restarted for the changes to take effect.   #
|                      <OK>                                   #
##############################################################/

   	~~	~~	~~	~~	~~	~~	~~
Vladimir `KLEO' Klejch     	Kleo'at'netbox.cz
 		...	...	...	...




More information about the Info-cyrus mailing list