def move_message_from_queue(key, mailbox, action, magic=False): m = open_by_key(key) wlemail.add_action(m, action) if magic: wlemail.add_magic(m) wlevacation.handle_incoming(m) deliver_mail(m, mailbox) remove_message(key) return m
def move_message_from_queue (key, mailbox, action, magic = False): m = open_by_key (key) wlemail.add_action (m, action) if magic: wlemail.add_magic (m) wlevacation.handle_incoming (m) deliver_mail (m, mailbox) remove_message (key) return m
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)
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)