~abompard/mailman/bug-1312884

« back to all changes in this revision

Viewing changes to src/mailman/model/docs/messagestore.rst

  • Committer: Barry Warsaw
  • Date: 2014-11-01 16:49:15 UTC
  • mfrom: (7251.1.38 abhilash)
  • Revision ID: barry@list.org-20141101164915-06wqfmya6wf47n6n
Database
--------
 * The ORM layer, previously implemented with Storm, has been replaced by
   SQLAlchemy, thanks to the fantastic work by Abhilash Raj and Aurélien
   Bompard.  Alembic is now used for all database schema migrations.
 * The new logger `mailman.database` logs any errors at the database layer.

API
---
 * Several changes to the internal API:
   - `IListManager.mailing_lists` is guaranteed to be sorted in List-ID order.
   - `IDomains.mailing_lists` is guaranteed to be sorted in List-ID order.
   - Iteration over domains via the `IDomainManager` is guaranteed to be sorted
     by `IDomain.mail_host` order.
   - `ITemporaryDatabase` interface and all implementations are removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
However, if the message has a ``Message-ID`` header, it can be stored.
29
29
 
30
30
    >>> msg['Message-ID'] = '<87myycy5eh.fsf@uwakimon.sk.tsukuba.ac.jp>'
31
 
    >>> message_store.add(msg)
32
 
    'AGDWSNXXKCWEILKKNYTBOHRDQGOX3Y35'
 
31
    >>> x_message_id_hash = message_store.add(msg)
 
32
    >>> print(x_message_id_hash)
 
33
    AGDWSNXXKCWEILKKNYTBOHRDQGOX3Y35
33
34
    >>> print(msg.as_string())
34
35
    Subject: An important message
35
36
    Message-ID: <87myycy5eh.fsf@uwakimon.sk.tsukuba.ac.jp>