Beispiel #1
0
def handle_action(action, key):
    if not wleconfirm.is_key(key):
        wlelog.log(4, "%s is not a valid key, ignoring" % key)
        return
    if action == 'W':
        unqueued = wleconfirm.deliver(key)
        wlelists.snoop_addresses(unqueued)
    elif action == 'D':
        wleconfirm.deliver(key)
    elif action == 'R':
        try:
            wleconfirm.move_message_from_queue(key, 'junkbox',
                                               'Removed or expired')
        except:
            pass
        count_junk()
Beispiel #2
0
def handle_action (action, key):
    if not wleconfirm.is_key (key):
        wlelog.log (4, "%s is not a valid key, ignoring" % key)
        return
    if action == 'W':
        unqueued = wleconfirm.deliver (key)
        wlelists.snoop_addresses (unqueued)
    elif action == 'D':
        wleconfirm.deliver (key)
    elif action == 'R':
        try:
            wleconfirm.move_message_from_queue (key, 'junkbox',
                                                'Removed or expired')
        except:
            pass
        count_junk ()
Beispiel #3
0
def handle_confirmation(m, key):
    wlelog.log(3, 'Confirmation found with key %s' % key)
    unqueued = wleconfirm.deliver(key)
    wlelists.snoop_addresses(unqueued)
    wleconfirm.check_discuss(unqueued)
    if wleconfig.config.getboolean('DEFAULT', 'allow_confirmer'):
        wlelists.snoop_addresses(m)
    wleconfirm.deliver_mail(m, 'confirmedbox')
Beispiel #4
0
def handle_confirmation (m, key):
    wlelog.log (3, 'Confirmation found with key %s' % key)
    unqueued = wleconfirm.deliver (key)
    wlelists.snoop_addresses (unqueued)
    wleconfirm.check_discuss (unqueued)
    if wleconfig.config.getboolean ('DEFAULT', 'allow_confirmer'):
        wlelists.snoop_addresses (m)
    wleconfirm.deliver_mail (m, 'confirmedbox')