Added --acounts option to edit accounts without running applet (Ken Hayber)
[rox-postal.git] / checker.py
blobcb1164038a38d7fcbd586beb0a5782e38fd63fd3
1 """
2 checker.py - A base class for mailbox checkers
4 Copyright 2006 Kenneth Hayber <ken@hayber.us>,
5 All rights reserved.
6 """
8 class Checker:
9 def __init__(self, config):
10 try:
11 self.name = config['name']
12 self.polltime = float(config['polltime'])
13 except:
14 self.name = ''
15 self.polltime = 10.0
17 self.blocker = None
18 self.results = ""
19 self.unseen = 0
20 self.prev_total = 0
22 def check(self):
23 yield None
24 self.blocker.trigger()