On Mon, Feb 22, 2016 at 12:16:51PM -0500, Leo Famulari wrote: > On Mon, Feb 22, 2016 at 10:34:22AM +0100, Andy Wingo wrote: > > On Mon 22 Feb 2016 06:38, Leo Famulari <[email protected]> writes: > > > > > msmtp comes with a couple of scripts called msmtpq and msmtp-queue that > > > will queue mail locally if necessary. > > > > > > https://sourceforge.net/p/msmtp/code/ci/master/tree/scripts/msmtpq/README.msmtpq > > > > > > I've been using them out of the Debian msmtp package, but I'd like to > > > see them in Guix. > > > > > > Thoughts? > > > > I realized the part of the patch that installs the README should install > it in "share/doc/msmtp", so I will make that change. > > > Can you write up how to use it, like in > > https://lists.gnu.org/archive/html/guix-devel/2015-11/msg00081.html ? > > Sure. Here's a basic configuration file for msmtp itself:
Taking into account the extra information, does anyone have any objections? > > --- > > defaults > auth on > tls on > tls_trust_file /path/to/ca-certificates.crt > > account account-name > host mail.example.com > from [email protected] > user [email protected] > passwordeval the rest of this string is an invocation of my password manager > > account default : account-name > > --- > > Once you've got that in a file called ~/.msmtprc, you can do this: > echo here's a patch | msmtp [email protected] > > Or: > echo here's a patch | msmtpq [email protected] > > The second method will queue mail for you in ~/.msmtp.queue if > necessary, and the queue is logged in ~/.msmtp.queue.log . The mail will > be sent the next time you are able to send mail. > > In my Mutt configuration, I use it like this: > set sendmail = msmtpq > set sendmail_wait = -1 # background the 'sendmail' process but watch for > # a return code from msmtpq. > > Users can inspect and work on the queue with the 'msmtp-queue' command, > which "calls msmtpq with the --q-mgmt command ; it exposes routines for > queue management and maintenance". > > Configuration of msmtpq is supposed to be done by editing the msmtpq > script itself, but in my opinion the defaults are sensible and don't > need to be changed. I didn't even realize it was configurable until you > asked for this synopsis and I've been using for it about a year. >
