I try to move email from mailbox's gmail to another one, Just curious that UID of each email will change when move to new mailbox ?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Yes of course the UID is changed when you do move operation. the new UID for that mail will be the next UID from the destination folder. (i.e if the last mail UID of the destination folder is : 9332 , then the UID of the move email will be 9333)
Note: UID is changed but the Message-Id will not be changed during any operation on that mail)
I took a look at my own IMAP code for Gmail, and one of the comments say that UID changes on move, because move is in fact copy+delete. Or maybe it's me who do the wrong thing:
-- otherwise, if you know the way to move it directly, it shouldn't change.