emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] email ui choices?


From: Eric Abrahamsen
Subject: Re: [O] email ui choices?
Date: Tue, 14 Jul 2015 19:41:18 +0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Rasmus <address@hidden> writes:

> Eric Abrahamsen <address@hidden> 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 "address@hidden" 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]