new option 'baskets'
This commit is contained in:
parent
c35497e582
commit
8932919f1e
1 changed files with 5 additions and 1 deletions
|
|
@ -55,7 +55,8 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
DESCRIPTION = u"“Adopte un mec” french dating website"
|
DESCRIPTION = u"“Adopte un mec” french dating website"
|
||||||
CONFIG = ValuesDict(Value('username', label='Username'),
|
CONFIG = ValuesDict(Value('username', label='Username'),
|
||||||
Value('password', label='Password', masked=True),
|
Value('password', label='Password', masked=True),
|
||||||
ValueBool('antispam', label='Enable anti-spam', default=False))
|
ValueBool('antispam', label='Enable anti-spam', default=False),
|
||||||
|
ValueBool('baskets', label='Get baskets with new messages', default=True))
|
||||||
STORAGE = {'profiles_walker': {'viewed': []},
|
STORAGE = {'profiles_walker': {'viewed': []},
|
||||||
'priority_connection': {'config': {}, 'fakes': {}},
|
'priority_connection': {'config': {}, 'fakes': {}},
|
||||||
'queries_queue': {'queue': []},
|
'queries_queue': {'queue': []},
|
||||||
|
|
@ -221,6 +222,9 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesPost, ICapDating, ICapCh
|
||||||
if m.flags & m.IS_UNREAD:
|
if m.flags & m.IS_UNREAD:
|
||||||
yield m
|
yield m
|
||||||
|
|
||||||
|
if not self.config['baskets']:
|
||||||
|
return
|
||||||
|
|
||||||
# Send mail when someone added me in her basket.
|
# Send mail when someone added me in her basket.
|
||||||
# XXX possibly race condition if a slut adds me in her basket
|
# XXX possibly race condition if a slut adds me in her basket
|
||||||
# between the aum.nb_new_baskets() and aum.get_baskets().
|
# between the aum.nb_new_baskets() and aum.get_baskets().
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue