Package posterity :: Package admin :: Module fetch :: Class POP3Fetcher

Class POP3Fetcher



     object --+    
              |    
inject.Injector --+
                  |
                 POP3Fetcher

Fetch messages from external POP3 servers

Instance Methods
 
__init__(self, instance, once=False, interval=300)
Initialize a POP3Fetcher object
 
run(self)
 
fetch_messages(self, paccount)
Connect to a POP3 account and download all new messages

Inherited from inject.Injector: apply_filters, inject_mbox, inject_message

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, instance, once=False, interval=300)
(Constructor)

 
Initialize a POP3Fetcher object
Parameters:
  • instance - The Posterity instance to work on
  • once - Check for messages once, or loop forever
  • interval - Delay in seconds between server connections
Overrides: inject.Injector.__init__

fetch_messages(self, paccount)

 

Connect to a POP3 account and download all new messages

This function automatically keeps track of already downloaded messages. After all new messages have been downloaded and injected this function checks the Pop3Log for any old messages that should be deleted.

Parameters: