Hello, I use msmtp-runqueue.sh under Arch Linux on my laptop, and it's generally working fine. However I just ran into a situation where, due to a day of sporadic connectivity, I noticed that one email with a large attachment had managed to block a whole day's worth of smaller emails.
My very quick proposal is to process mails in the ~/.msmtpqueue in reverse size order. That will allow larger emails to sit and block when necessary, but give a boost to smaller emails that might have built up in the queue. It's not perfect, but I can't see any major negatives to taking this approach, except in a few pathological cases. I'm not sure how much msmtp-runqueue.sh is part of the official distribution, so sorry if this is to the wrong place. A quick diff: --- msmtp-runqueue.sh.orig 2014-07-17 11:01:19.676053700 +0100 +++ msmtp-runqueue.sh 2014-07-17 11:01:06.788149400 +0100 @@ -33,7 +33,7 @@ touch "$LOCKFILE" || exit 1 # process all mails -for MAILFILE in *.mail; do +for MAILFILE in $(ls -Sr *.mail); do MSMTPFILE="`echo $MAILFILE | sed -e 's/mail/msmtp/'`" echo "*** Sending $MAILFILE to `sed -e 's/^.*-- \(.*$\)/\1/' $MSMTPFILE` ..." if [ ! -f "$MSMTPFILE" ]; then Joss -- Joss Wright | @JossWright http://www.pseudonymity.net
pgpBx118JxI4H.pgp
Description: PGP signature
------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds
_______________________________________________ msmtp-users mailing list msmtp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msmtp-users