[PyWebMailFrontPage] [TitleIndex] [WordIndex]

WebMailBackendContract

Backend module contract

This module describes backend module contract. Backend module is used to create new method of accessing the collection of messages. For example one can write module to access messages stored in database (not currently planned).

Module content

Backend module is module contained in webmail.backends package. Backend module has one exported name mailbox_factory.

Exported mailbox_factory (usually class of mailbox accounts) must be callable with two positional parameters, named here main_config and box_config.

Mailbox account

Callable mailbox_factory must return closed mailbox account.

Object returned by mailbox_factory (refered here mailbox account) must have following attributes and methods:

Mailbox folder

Object returned by get method of mailbox account object (referred here mailbox folders) must have following attributes and methods:

Message information

Objects returned by list method of mailbox folder object (referred here message information) must have following attributes and methods:


2007-01-05 21:08