diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2011-11-30 20:48:51 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2011-11-30 20:48:51 +0000 |
commit | 4b0db4944634a794c7c75ff234a761d22c2bb72e (patch) | |
tree | 9902a4c0c5b91f5db6c2e887cf1a7f94ee93142b /docs/database.rst | |
parent | c0eda5d65aa309f6e03bca824bcea17bcbe85cdd (diff) |
API doc for alot.db
Diffstat (limited to 'docs/database.rst')
-rw-r--r-- | docs/database.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/database.rst b/docs/database.rst index f6404d7c..3f5b9f04 100644 --- a/docs/database.rst +++ b/docs/database.rst @@ -3,6 +3,22 @@ Email Database .. module:: alot.db +The python bindings to libnotmuch define :class:`notmuch.database.Thread` and +:class:`notmuch.database.Message`, which unfortunately are very fragile. +Alot defines the wrapper classes :class:`Thread` and :class:`~alot.message.Message` that +use an :class:`DBManager` instance to transparently provide persistent objects. + +:class:`~alot.message.Message` moreover contains convenience methods +to extract information about the message like reformated header values, a summary, +decoded and interpreted body text and a list of :class:`Attachments <alot.message.Attachment>`. + +The central :class:`~alot.ui.UI` instance carries around a :class:`DBManager` object that +is used for any lookups or modifications of the email base. :class:`DBManager` can +directly look up :class:`Thread` and :class:`~alot.message.Message` objects and is able to +postpone/cache/retry writing operations in case the Xapian index is locked by another +process. + + :class:`DBManager` --------------------------- .. autoclass:: DBManager |