Package emma :: Package interface :: Package email :: Class email
[hide private]
[frames] | no frames]

Class email

source code

complement.Complement --+    
                        |    
                Interface --+
                            |
                           email

Instance Methods [hide private]
 
run(self)
Initialize email interface
source code
 
fetch(self)
Fetch email
source code
 
send_handle(self, event, msg) source code
 
send(self, to, msg) source code
 
store(self, message)
Store message on the database
source code
 
update_db(self)
Update database
source code

Inherited from Interface: __init__, db_handler

Inherited from complement.Complement: log

Method Details [hide private]

run(self)

source code 

Initialize email interface

Overrides: complement.Complement.run

fetch(self)

source code 

Fetch email

Will be run periodically fetching the email from a POP3 server.

store(self, message)

source code 

Store message on the database

Parameters:
  • message (Message) - message to be stored

update_db(self)

source code 

Update database

Stores the emma version on the collection of the complement. And returns the old version from the database and the actual version of emma.

Returns:
(old version, new version)
Overrides: complement.Complement.update_db
(inherited documentation)