Add mail backend configuration example for #303.

This commit is contained in:
facetoe 2016-02-10 22:30:27 +08:00
parent b99d74d6f6
commit e0a3140f99

View File

@ -26,6 +26,19 @@ Module reference
Mail Backends
-------------
The generic mail module can be configured to use multiple mail backends. Here is an
example configuration for the MaildirMail backend:
.. code:: python
status.register("mail",
backends=[maildir.MaildirMail(
directory="/home/name/Mail/inbox")
],
format="P {unread}",
log_level=20,
hide_if_null=False, )
.. autogen:: i3pystatus.mail SettingsBase
.. nothin'