summaryrefslogtreecommitdiff
path: root/Mailman/database/message.py
Commit message (Collapse)AuthorAgeFilesLines
* Bite the bullet: rename the Mailman package to mailman.Barry Warsaw2008-02-271-42/+0
|
* Tweak copyright years.Barry Warsaw2008-02-071-1/+1
|
* Add .get() to our Message subclass, which ensures that returnedBarry Warsaw2007-12-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | values are unicodes if they come from the base class as a string. Get rid of the 'global id'. Now use just Message-ID. Rename X-List-ID-Hash to X-Message-ID-Hash. Do not take Date header into account when calculating this hash. Because of the above change, the assumption is that there will be no Message-ID collisions. Therefore, get rid of IMessageStore .get_message(), .get_messages_by_message_id() and .get_messages_by_hash(). Instead, it's now .get_message_by_id() and .get_message_by_hash() both of which return the message object or None. Message.hash -> Message.message_id_hash When storing a message in the message store, the final path component has the entire hash, not just the leftover parts after directory prefix splitting. MessageStore.delete_message() deletes the file too. Doctests clean up message store messages though the message store instead of directly off the filesystem.
* Reorganize the database subpackage, primarily by removing the 'model'Barry Warsaw2007-12-081-0/+42
subdirectory and updating all relevant imports. Move of the circular import problems have been eliminated in the process.