Discussion:
[bug-mailutils] Timeout for movemail
Jean Louis
2018-10-05 05:59:15 UTC
Permalink
Dear Sergey,

is there anyway to setup timeout for movemail?

The problem is for months. I am not on best
Internet connection. So movemail stops somewhere
in the middle, and hangs.

Then I need to kill it. Then to restart it.

Progress feature is helping, because I can see it
is somewhere on the message 45 out of 214.

It would be good to be able to set timeout so that
if movemail is hanging for more than 30 - 60
seconds that it cancels the operation and tries
again with messages not done.

I have found timeout references in info for
mailutils but I am not sure if it works for
movemail.

Jean


P.S. cannot send message to you


----- Forwarded message from Mail Delivery Subsystem <MAILER-***@sun> -----

Date: Fri, 5 Oct 2018 00:52:45 +0300
From: Mail Delivery Subsystem <MAILER-***@sun>
To: ***@gnu.XXXXXX
Subject: Warning: could not send message for past 4 hours
Organization: Farlep-Internet

**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************

The original message was received at Thu, 4 Oct 2018 20:50:34 +0300
from XXXXXXXXXXXXXXx

----- Transcript of session follows -----
<***@gnu.org.ua>... Deferred: Connection refused by relay1.gnu.org.ua.
Warning: message still undelivered after 4 hours
Will keep trying until message is 5 days old
----- End forwarded message -----
Sergey Poznyakoff
2018-10-05 10:17:09 UTC
Permalink
Hi Jean,
Post by Jean Louis
is there anyway to setup timeout for movemail?
No, so far there is not. Please use the timeout command from GNU
coreutils:

timeout 5m movemail [other options]

Regards,
Sergey
Jean Louis
2018-10-05 12:18:06 UTC
Permalink
Post by Sergey Poznyakoff
Hi Jean,
Post by Jean Louis
is there anyway to setup timeout for movemail?
No, so far there is not. Please use the timeout command from GNU
timeout 5m movemail [other options]
I did not know that solution, that is nice. Thank you.

Loading...