From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: email ui choices? Date: Tue, 14 Jul 2015 07:10:20 -0400 Message-ID: References: <20150714084809.GB11584@unser.net> <87lhejvwox.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307cfd3c5211e3051ad3e241 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEy6W-0000LR-1e for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 07:10:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEy6Q-0008RN-QZ for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 07:10:27 -0400 Received: from mail-vn0-x229.google.com ([2607:f8b0:400c:c0f::229]:39228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEy6Q-0008R3-KJ for emacs-orgmode@gnu.org; Tue, 14 Jul 2015 07:10:22 -0400 Received: by vnbf190 with SMTP id f190so634103vnb.6 for ; Tue, 14 Jul 2015 04:10:21 -0700 (PDT) In-Reply-To: <87lhejvwox.fsf@ericabrahamsen.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Cc: Org Mode --20cf307cfd3c5211e3051ad3e241 Content-Type: text/plain; charset=UTF-8 On Tue, Jul 14, 2015 at 6:51 AM, Eric Abrahamsen wrote: > Juergen Christoffel writes: > > > I wonder if it's even necessary to have *any* sort of MUA set up in > Emacs, if all you're doing is sending email? Many email programs paper > over the distinction between sending and receiving/reading email, but I > think the Emacs-based tools preserve that distinction pretty well. > I'm wondering that too now! > > Message-mode is built in, and I use it in conjunction with the msmtp > program, like so: > > (setq message-send-mail-function 'message-send-mail-with-sendmail) > (setq sendmail-program "msmtp") > thank you for the pointer to msmtp > > Check the docstring for the *variable* `message-send-mail-function', and > that should get you started. If you're only using a single account for > sending, that should be significantly simpler. Look at > `user-mail-address' and all that. > > Then just call `compose-mail'! > > To answer the original question, the org-mime library in Org's > contrib/lisp directory is probably what you want for htmlizing buffers > and sending them as email. > > I've made some progress on this but it's not quite perfect. I have this function: (defun mime-send-mail () "org-mime-subtree and HTMLize" (interactive) (org-mark-subtree) ;; wish I could get the PARENT headline here! ;; then figure out how to set subject to that headline! (let ((subject (nth 4 (org-heading-components)))) (org-mime-subtree) (insert "\nBest,\nMP.\n") (org-mime-htmlize) ;; had to redefine so it could be called non-interactively (command-execute 'mml-attach-file) (message-goto-to)) ) I've been thinking about it, and I would love to just have a link to the student paper within org itself, and have the attachment added automatically after org-mime-htmlize runs. I'm not sure exactly how to do that but if I figure it out I will let the group know. I vaguely recall I've seen other people describe such systems so I would appreciate guidance if it's available. Thanks again! m > Hope that helps, > Eric > > > > --20cf307cfd3c5211e3051ad3e241 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Jul 14, 2015 at 6:51 AM, Eric Abrahamsen <= eric@ericabrah= amsen.net> wrote:
Juergen Christoffel <jc.org14@cynix.net> writes:


I wonder if it's even necessary to have *any* sort of MUA set up= in
Emacs, if all you're doing is sending email? Many email programs paper<= br> over the distinction between sending and receiving/reading email, but I
think the Emacs-based tools preserve that distinction pretty well.

I'm wondering that too now!

Message-mode is built in, and I use it in conjunction with the msmtp
program, like so:

(setq message-send-mail-function 'message-send-mail-with-sendmail)
(setq sendmail-program "msmtp")

thank you for the pointer to msmtp

Check the docstring for the *variable* `message-send-mail-function', an= d
that should get you started. If you're only using a single account for<= br> sending, that should be significantly simpler. Look at
`user-mail-address' and all that.

Then just call `compose-mail'!

To answer the original question, the org-mime library in Org's
contrib/lisp directory is probably what you want for htmlizing buffers
and sending them as email.


I've made some progress on this bu= t it's not quite perfect.=C2=A0 I have this function:
(defun mime-se= nd-mail ()
"org-mime-subtree and HTMLize"
(interactive)
= (org-mark-subtree)
;; wish I could get the PARENT headline here!
;; then figure out how to set subject to that headline!
(le= t ((subject=C2=A0 (nth 4 (org-heading-components))))
=C2=A0 (org-mime-su= btree)
=C2=A0 (insert "\nBest,\nMP.\n")
=C2=A0 (= org-mime-htmlize) ;; had to redefine so it could be called non-interactivel= y
=C2=A0 (command-execute 'mml-attach-file)
=C2= =A0 (message-goto-to))
)

I've been thinking about= it, and I would love to just have a link to the student paper within org i= tself, and have the attachment added automatically after org-mime-htmlize r= uns.=C2=A0 I'm not sure exactly how to do that but if I figure it out I= will let the group know.=C2=A0 I vaguely recall I've seen other people= describe such systems so I would appreciate guidance if it's available= .=C2=A0

Thanks again!
m

= =C2=A0
Hope that helps,
Eric




--20cf307cfd3c5211e3051ad3e241--