示例#1
0
def deliver(key):
    count_delivered()
    wlelog.log(3, 'Unblocking mail with key %s' % key)
    return move_message_from_queue (key, 'mailbox',
                                    'Confirmed (%s)' % \
                                    time.ctime (time.time()),
                                    True)
示例#2
0
def deliver (key):
    count_delivered ()
    wlelog.log (3, 'Unblocking mail with key %s' % key)
    return move_message_from_queue (key, 'mailbox',
                                    'Confirmed (%s)' % \
                                    time.ctime (time.time()),
                                    True)
示例#3
0
def handle_ok(m):
    wlemail.add_magic(m)
    wlevacation.handle_incoming(m)
    wleconfirm.deliver_mail(m, 'mailbox')
    count_delivered()
    wleconfirm.check_discuss(m)
    if wlemail.from_mailinglist(m):
        if wleconfig.config.getboolean('DEFAULT', 'list_add_other'):
            wlelists.snoop_addresses(m)
    else:
        if wlemail.sent_by_myself(m):
            if wleconfig.config.getboolean('DEFAULT', 'confirm_recipients'):
                wlelists.add_confirmed(m.mrecipients)
        elif wleconfig.config.getboolean('DEFAULT', 'people_add_other'):
            wlelists.snoop_addresses(m)
示例#4
0
文件: wle.py 项目: samueltardieu/wle
def handle_ok (m):
    wlemail.add_magic (m)
    wlevacation.handle_incoming (m)
    wleconfirm.deliver_mail (m, 'mailbox')
    count_delivered ()
    wleconfirm.check_discuss (m)
    if wlemail.from_mailinglist (m):
        if wleconfig.config.getboolean ('DEFAULT', 'list_add_other'):
            wlelists.snoop_addresses (m)
    else:
        if wlemail.sent_by_myself (m):
            if wleconfig.config.getboolean ('DEFAULT', 'confirm_recipients'):
                wlelists.add_confirmed (m.mrecipients)
        elif wleconfig.config.getboolean ('DEFAULT', 'people_add_other'):
            wlelists.snoop_addresses (m)