repo.or.cz
/
rox-postal.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added --acounts option to edit accounts without running applet (Ken Hayber)
[rox-postal.git]
/
checker.py
blob
cb1164038a38d7fcbd586beb0a5782e38fd63fd3
1
"""
2
checker.py - A base class for mailbox checkers
3
4
Copyright 2006 Kenneth Hayber <ken@hayber.us>,
5
All rights reserved.
6
"""
7
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
16
17
self
.
blocker
=
None
18
self
.
results
=
""
19
self
.
unseen
=
0
20
self
.
prev_total
=
0
21
22
def
check
(
self
):
23
yield None
24
self
.
blocker
.
trigger
()