コード例 #1
0
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)
コード例 #2
0
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)
コード例 #3
0
ファイル: wleconfirm.py プロジェクト: samueltardieu/wle
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)