704 |
# maildrop aborts and will try to deliver after 5min |
# maildrop aborts and will try to deliver after 5min |
705 |
# fork to avoid this |
# fork to avoid this |
706 |
if os.fork() != 0: sys.exit(0) |
if os.fork() != 0: sys.exit(0) |
707 |
time.sleep(SLEEP_INITIAL) |
# wait SLEEP_INITIAL after the message was sent |
708 |
|
secs = SLEEP_INITIAL |
709 |
|
t = email.utils.parsedate_tz(msg['Date']) |
710 |
|
if t is not None: |
711 |
|
msg_time = email.utils.mktime_tz(t) |
712 |
|
secs = SLEEP_INITIAL - (time.time() - msg_time) |
713 |
|
|
714 |
|
if secs > 0: time.sleep(secs) |
715 |
|
|
716 |
error = False |
error = False |
717 |
for package in packages: |
for package in packages: |