Package screenlets :: Package plugins :: Module mail :: Class IMAPBackend
[hide private]
[frames] | no frames]

Class IMAPBackend

source code

     object --+        
              |        
gobject.GObject --+    
                  |    
   MailCheckBackend --+
                      |
                     IMAPBackend

A backend for retrieving the mailcount from an IMAP server.

Instance Methods [hide private]
 
__init__(self, screenlet) source code
 
check_mail(self)
This handler should be overridden by subclasses to add new types of checking mails in a backend.
source code
 
stop(self)
Stop receiving mails from the backend.
source code

Inherited from MailCheckBackend: start

Inherited from gobject.GObject: __cmp__, __delattr__, __gdoc__, __gobject_init__, __hash__, __new__, __repr__, __setattr__, chain, connect, connect_after, connect_object, connect_object_after, disconnect, disconnect_by_func, emit, emit_stop_by_name, freeze_notify, get_data, get_properties, get_property, handler_block, handler_block_by_func, handler_disconnect, handler_is_connected, handler_unblock, handler_unblock_by_func, notify, props, set_data, set_properties, set_property, stop_emission, thaw_notify, weak_ref

Inherited from object: __getattribute__, __reduce__, __reduce_ex__, __str__

Class Variables [hide private]

Inherited from MailCheckBackend: __gsignals__, __gtype__

Properties [hide private]

Inherited from gobject.GObject: __grefcount__

Inherited from object: __class__

Method Details [hide private]

__init__(self, screenlet)
(Constructor)

source code 
Overrides: MailCheckBackend.__init__

check_mail(self)

source code 
This handler should be overridden by subclasses to add new types of checking mails in a backend. This handler has to set self.mailcount to the number of mails found in the backend. The return value is ignored, set self.error and self.status to return results.
Overrides: MailCheckBackend.check_mail
(inherited documentation)

stop(self)

source code 
Stop receiving mails from the backend. This should be overridden by subclasses.
Overrides: MailCheckBackend.stop
(inherited documentation)