unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Andy Wingo <wingo@igalia.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 0/1] Install mail queue tool with msmtp
Date: Wed, 24 Feb 2016 17:39:54 -0500	[thread overview]
Message-ID: <20160224223954.GA31539@jasmine> (raw)
In-Reply-To: <20160222171651.GA2291@jasmine>

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 <leo@famulari.name> 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 me@example.com
> user me@example.com
> 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 guix-devel@gnu.org
> 
> Or:
> echo here's a patch | msmtpq guix-devel@gnu.org
> 
> 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.
> 

  reply	other threads:[~2016-02-24 22:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22  5:38 [PATCH 0/1] Install mail queue tool with msmtp Leo Famulari
2016-02-22  5:38 ` [PATCH 1/1] gnu: msmtp: Install msmtpq Leo Famulari
2016-02-22  9:34 ` [PATCH 0/1] Install mail queue tool with msmtp Andy Wingo
2016-02-22 17:16   ` Leo Famulari
2016-02-24 22:39     ` Leo Famulari [this message]
2016-02-28 15:11 ` Ludovic Courtès
2016-02-29  3:09   ` Leo Famulari
2016-02-28 15:46 ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160224223954.GA31539@jasmine \
    --to=leo@famulari.name \
    --cc=guix-devel@gnu.org \
    --cc=wingo@igalia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).