From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 0/1] Install mail queue tool with msmtp Date: Wed, 24 Feb 2016 17:39:54 -0500 Message-ID: <20160224223954.GA31539@jasmine> References: <87oab9rsv5.fsf@igalia.com> <20160222171651.GA2291@jasmine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYi6A-0001sJ-BL for guix-devel@gnu.org; Wed, 24 Feb 2016 17:39:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYi67-0002Sy-4g for guix-devel@gnu.org; Wed, 24 Feb 2016 17:39:58 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYi66-0002Ss-UG for guix-devel@gnu.org; Wed, 24 Feb 2016 17:39:55 -0500 Content-Disposition: inline In-Reply-To: <20160222171651.GA2291@jasmine> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andy Wingo Cc: guix-devel@gnu.org 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 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. >