[ 
https://issues.apache.org/jira/browse/IMAP-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206747#comment-13206747
 ] 

lcl hst commented on IMAP-360:
------------------------------

If UIDs from an earlier session fail to persist in this session, the 
UIDVALIDITY value MUST be greater than the one used in the earlier session.
Thus, the client should remember UidValidity value of each folder and compare 
the saved value and new value on next session. If new value is larger, it means 
the mail server is not capable of keeping UIDs unchanged between sessions. In 
this case, the client cannot make any assumptions that UIDs obtained during the 
previous session correspond to UIDs of the same messages on this session.
Nowadays, IMAP4 servers which fail to persist UIDs between session are very 
uncommon, and the UIDVALIDITY value is usually the same accross sessions. 
Nevertheless, the client should still check the UIDVALIDITY value due to the 
following reason: if, between two sessions, the folder was deleted and the 
folder with the same name was recreated, and this new folder was filled with 
some mails, their UIDs may coincide with UIDs of the messages in the original 
folder (which is now deleted). To avoid confusion, the application should check 
if UIDVALIDITY had changed.
                
> IMAP-folder jumps
> -----------------
>
>                 Key: IMAP-360
>                 URL: https://issues.apache.org/jira/browse/IMAP-360
>             Project: JAMES Imap
>          Issue Type: Bug
>          Components: JPA Mailbox, Mailbox, Protocol
>    Affects Versions: 0.1, 0.2-M1, 0.2, 0.2.1, 0.3
>         Environment: Windows 7, 64 bits, Oracle JPA.
>            Reporter: lcl hst
>            Priority: Critical
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When clicking an IMAP-folder in Thunderbird, I see several messages,
> when changing to another and switching back, I see different messages!
> This is the case, everytime I switch folders. So this folder "jumps".
> I did not expect this. This should never happen.
> It seems different messages are returned sometimes? Or maybe
> Thunderbird is doing something wrong.
> I've attached the IMAP-log from Thunderbird. As you can see in the log
> below, I chose INBOX, then clicked "Trash", then chose "INBOX" again.
> The 2nd time I viewed the inbox, there were other messages and
> messages got removed. When I switch over and over, I get different
> messages all the time. Some messages are marked read, some not. This
> changes all the time.
> What is going on here?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to