On Sun, Feb 14, 2021 at 06:39:10PM -0600, boB Stepp wrote:
On 21/02/14 10:25AM, Angel M Alganza wrote:
On Sun, Feb 14, 2021 at 01:10:41AM -0600, boB Stepp wrote:
On 21/02/13 08:03PM, Sam Kuper wrote:

A queue script is included with msmtp, so you can have the best of both
worlds :)

https://git.marlam.de/gitweb/?p=msmtp.git;a=blob_plain;f=scripts/msmtpq/README.msmtpq;hb=HEAD

Is there an obvious way forward to check periodically for regaining
the network connection and flushing the queue?

From the URL above:

msmtp-queue -r -- runs (flushes) all the contents of the queue

Try running 'msmtp-queue -r' at your shell. It should trigger sending.

Adding 'msmtp-queue -r' as a cron job should do it automatically.

I saw that, but wanted to be sure I wasn't missing any functionality built-in
due to my lack of understanding or ignorance.

If there is built-in functionality to do this, I am not finding it.

I haven't found one, but I think it'd go through cron or some other
scheduling system.

So it sounds like I wasn't missing anything from what you and Sam are saying.
I don't send out very many emails; I read far more than I respond to.  My
Internet connection is usually very reliable.  I am wondering if it is even
worth the effort for a cron job on this.  I think what you suggest -- an
manual 'msmtp-queue -r' as needed -- is more than ample for my use case.  For
that matter, in most instances I don't even mind waiting until I send another
email which will achieve the same effect.

The same with me :) That's why I have no cronjob for `msmtp-queue -r`
but just two additional mutt macroses:
---
macro index <esc>q "!clear; msmtp-queue<enter>"    "show send queue"
macro index <esc>Q "!clear; msmtp-queue -r<enter>" "re-send from queue"
---

Thank you very much for everyone's suggestions!  My Mutt installation is
getting better and better and faster and faster!

--
Wishing you only the best,

boB Stepp

--
Cheers,
Oleg A. Mamontov

mailto: o...@mamontov.net

skype:  lonerr11
cell:   +7 (903) 798-1352

Reply via email to