Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
Description
append() does not return the new UID of the stored message, so normally you have to FETCH or SEARCH for the appended message to get the new UID. This is not needed because the APPEND command returns the APPENDUID if the UIDPLUS extension is installed.
I provide a patch that trys to parse the APPENDUID and returns it. The patch is not perfect, I can only check dovecot 2.0, I don't know if other IMAP servers return the APPENDUID in a different way. I don't know if the APPENDUID should be returned if the developer works with message ids and not unique ids, perhaps there is missing a
if ($this->options->uidReferencing)