gnu.inet.imap
Interface UIDPlusHandler
public interface UIDPlusHandler
Callback interface for receiving APPENDUID and COPYUID responses.
See RFC 2359 for details.
void | appenduid(long uidvalidity, long uid) - Notification of an APPENDUID response.
|
void | copyuid(long uidvalidity, long oldUID, long newUID) - Notification of a COPYUID response.
|
appenduid
public void appenduid(long uidvalidity,
long uid)
Notification of an APPENDUID response.
Called on a successful APPEND to a server that supports the UIDPLUS
extension.
uidvalidity
- the UIDVALIDITY of the destination mailboxuid
- the UID assigned to the appended message.
copyuid
public void copyuid(long uidvalidity,
long oldUID,
long newUID)
Notification of a COPYUID response.
Called on a successful COPY to a server that supports the UIDPLUS
extension.
If more than one message is copied, this method will be called multiple
times, once for each message copied.
uidvalidity
- the UIDVALIDITY of the destination mailboxoldUID
- the UID of the message in the source mailboxnewUID
- the UID of the corresponding message in the target
mailbox