This commit is contained in:
Mathieu Agopian
2013-03-21 11:45:25 +01:00
parent 1314184216
commit c4f46f3fed

View File

@@ -54,7 +54,7 @@ You also need to provide the username and password. Here's an simple example:
.. code-block:: python .. code-block:: python
from mailbot import MailBot from mailbot import MailBot, register
from mycallbacks import MyCallback from mycallbacks import MyCallback
@@ -62,7 +62,7 @@ You also need to provide the username and password. Here's an simple example:
mailbot = MailBot('imap.myserver.com', 'username', 'password') mailbot = MailBot('imap.myserver.com', 'username', 'password')
# register your callback # register your callback
mailbot.register(MyCallback) register(MyCallback)
# check the unprocessed messages and trigger the callback # check the unprocessed messages and trigger the callback
mailbot.process_messages() mailbot.process_messages()