From: Andy Wingo <wingo@igalia.com>
To: guix-devel@gnu.org
Subject: Re: [PATCH 2/2] gnu: Add esmtp.
Date: Tue, 03 Nov 2015 15:32:45 +0000 [thread overview]
Message-ID: <87611jjdya.fsf@igalia.com> (raw)
In-Reply-To: <1446562473-5808-2-git-send-email-wingo@igalia.com> (Andy Wingo's message of "Tue, 3 Nov 2015 15:54:33 +0100")
On Tue 03 Nov 2015 14:54, Andy Wingo <wingo@igalia.com> writes:
> * gnu/packages/mail.scm (esmtp): New public variable.
This patch adds a "sendmail" that works, more or less. In my ~/.esmtprc
I have:
hostname = your.smtp.server:port
username = user@email.com
password = 'yourpasswordhere'
starttls = required
That configures the esmtp MTA. Then in Emacs you have these variables:
(setq send-mail-function 'sendmail-send-it)
(setq sendmail-program "/home/USER/.guix-profile/sbin/sendmail")
And install esmtp:
guix package -i esmtp
So now C-x m works, cool. You probably also want to install
git-send-email:
guix package -i git:send-email
and configure it globally:
git config --global sendemail.from "Your Name <your@email>"
# Don't Cc: yourself on mails.
git config --global sendemail.suppressfrom true
git config sendemail.smtpserver $HOME/.guix-profile/sbin/sendmail
git config envelopesender auto
And probably in your guix checkout you want to do:
git config sendemail.to guix-devel@gnu.org
And if all that is set up... well then you should be able to
git send-email 0001-foo.patch 0002-bar.patch
or
git send-email origin/master..HEAD
or whatever. Anyway you all have probably already hooked all of this up
but I was really struggling, and maybe this is useful to someone else.
Finally, the esmtp daemon will normally block on sending mails and never
queue anything. If you want to queue, there's the esmtp-wrapper shell
script shipped with esmtp; simply do:
ln -s ~/.guix-profile/bin/esmtp-wrapper ~/bin/sendmail
ln -s ~/.guix-profile/bin/esmtp-wrapper ~/bin/mailq
It will queue to ~/.esmtp_queue. This gives you the ability to send
mails while being offline. Later to send them, you can "mailq -q".
OK, that's all! At some point it would be nice to rewrite this hacky
pile of C and shell with a nice Guile relay-only MTA, but that day is
not today, at least for me :)
Cheers,
Andy
next prev parent reply other threads:[~2015-11-03 15:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-03 14:54 [PATCH 1/2] gnu: Add libesmtp Andy Wingo
2015-11-03 14:54 ` [PATCH 2/2] gnu: Add esmtp Andy Wingo
2015-11-03 15:21 ` Thompson, David
2015-11-03 15:32 ` Andy Wingo [this message]
2015-11-03 15:40 ` Andy Wingo
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87611jjdya.fsf@igalia.com \
--to=wingo@igalia.com \
--cc=guix-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.