From c4f46f3fed13b3a877a08a2893aa24e82f5024a6 Mon Sep 17 00:00:00 2001 From: Mathieu Agopian Date: Thu, 21 Mar 2013 11:45:25 +0100 Subject: [PATCH] doc fix --- docs/source/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index e86a21b..f0357cd 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -54,7 +54,7 @@ You also need to provide the username and password. Here's an simple example: .. code-block:: python - from mailbot import MailBot + from mailbot import MailBot, register 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') # register your callback - mailbot.register(MyCallback) + register(MyCallback) # check the unprocessed messages and trigger the callback mailbot.process_messages()