From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: email ui choices?
Date: Tue, 14 Jul 2015 19:41:18 +0800 [thread overview]
Message-ID: <87si8ruftt.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87pp3vvunk.fsf@gmx.us
Rasmus <rasmus@gmx.us> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> (setq message-send-mail-function 'message-send-mail-with-sendmail)
>> (setq sendmail-program "msmtp")
>
> Emacs is pretty good at talking to smtp servers. You can simply add a
> header like this to your message (e.g. via `gnus-posting-styles' or
> `message-default-headers'):
>
> X-Message-Smtp-Method: smtp smtp.email.com 465 rasmus
>
> For saving the sent mail, Gnus uses the GCC header. I don't know what
> you'd do in the case of plain message.el.
I looked at my .gnus.el file, and found this:
;;; the following might be obviated by the X-SMTP-METHOD headers,
;;; except I don't think it will work for my case: the header is supposed to contain
(defun cg-feed-msmtp ()
(if (message-mail-p)
(save-excursion
(let* ((from
(save-restriction
(message-narrow-to-headers)
(message-fetch-field "from")))
(account
(cond
;; I use email address as account label in ~/.msmtprc
((string-match "eric@ericabrahamsen.net" from) "ea")
;; many accounts...
))
(setq message-sendmail-extra-arguments (list '"-a" account))))))
(setq message-sendmail-envelope-from 'header)
(add-hook 'message-send-mail-hook 'cg-feed-msmtp)
"the header is suppose to contain" WHAT?!? I will never know how that
comment was supposed to end, and it eats at me...
E
next prev parent reply other threads:[~2015-07-14 11:41 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 0:16 email ui choices? Matt Price
2015-07-14 8:48 ` Juergen Christoffel
2015-07-14 10:51 ` Eric Abrahamsen
2015-07-14 11:10 ` Matt Price
2015-07-14 11:27 ` Eric Abrahamsen
2015-07-14 20:51 ` Matt Price
2015-07-15 1:46 ` Eric Abrahamsen
2015-07-14 22:29 ` Juergen Christoffel
2015-07-14 23:22 ` Matt Price
2015-07-14 11:35 ` Rasmus
2015-07-14 11:41 ` Eric Abrahamsen [this message]
2015-07-14 12:01 ` Rasmus
2015-07-14 14:47 ` Jorge A. Alfaro-Murillo
2015-07-15 1:14 ` Eric Abrahamsen
2015-07-15 8:56 ` Rasmus
2015-07-15 9:27 ` Eric Abrahamsen
2015-07-15 9:37 ` Rasmus
2015-07-16 3:27 ` Eric Abrahamsen
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://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87si8ruftt.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-orgmode@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.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).