Message305572
In mailbox.py in the stdlib, the functions MH.add and MH.__setitem__ take a message object and dump it to a file in the MH folder, which is good and well. However, they only call self._dump_sequences() if the message was already an MHMessage.
Since in the MH format, status details (whether the message was read, replied or flagged) are saved in these sequences, this effectively loses this information.
This means that, if "folder" is an MH folder and "message" is a message of any class other than MHMessage,
folder.add(message)
loses the information, while
folder.add(MHMEssage(message))
retains it. This seems surprising and suboptimal. |
|
Date |
User |
Action |
Args |
2017-11-04 22:55:29 | shai | set | recipients:
+ shai, barry, r.david.murray |
2017-11-04 22:55:29 | shai | set | messageid: <1509836129.85.0.213398074469.issue31946@psf.upfronthosting.co.za> |
2017-11-04 22:55:29 | shai | link | issue31946 messages |
2017-11-04 22:55:29 | shai | create | |
|