def handle_incoming (m): if not wleconfig.config.getboolean ('DEFAULT', 'vacation'): return if wlemail.from_mailinglist (m): return if wlemail.sent_by_myself (m): return if not wlemail.sent_to_me (m): return r = vacation_message (m) if r: wlemail.send_message (r)
def queue(m): key = secret(m) fd = open(queue_path(key), 'w') wlemail.add_action(m, "Queued (%s)" % time.ctime(time.time())) fd.write(m.as_string()) fd.close() confirm = confirmation(m, key) if confirm: wlemail.send_message(confirm)
def queue (m): key = secret (m) fd = open (queue_path (key), 'w') wlemail.add_action (m, "Queued (%s)" % time.ctime (time.time())) fd.write (m.as_string ()) fd.close () confirm = confirmation (m, key) if confirm: wlemail.send_message (confirm)