From: "Eric Schulte" <schulte.eric@gmail.com>
To: Ethan Ligon <ligon@are.berkeley.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Email from org?
Date: Tue, 10 Aug 2010 09:44:26 -0600 [thread overview]
Message-ID: <87k4ny321x.fsf@gmail.com> (raw)
In-Reply-To: <loom.20100731T030826-701@post.gmane.org> (Ethan Ligon's message of "Sat, 31 Jul 2010 01:25:59 +0000 (UTC)")
Hi Ethan,
Ethan Ligon <ligon@are.berkeley.edu> writes:
> Eric Schulte <schulte.eric <at> gmail.com> writes:
>> The following function might get part way towards what you describe.
>>
>> --8<---------------cut here---------------start------------->8---
>> (defun org-send-email-of-headline ()
>> (interactive)
>> (let ((subject (org-get-heading t))
>> (to (org-entry-get (point) "mailto")))
>> (outline-mark-subtree)
>> (org-mime-org-buffer-htmlize)
>> (save-excursion
>> (message-goto-to) (insert to)
>> (message-goto-subject) (insert subject))))
>> --8<---------------cut here---------------end--------------->8---
>>
>
> Indeed! This gets me very close to what I had in mind. Aside from
> saying thanks, I have two related things to say:
>
> 1) The code snippet above (really org-mime-org-buffer-htmlize)
> produces output which is either designed to be further processed by
> the mml library (mml-generate-mime) for gnus users or by the semi
> library for wanderlust users. Thus, the buffer resulting from the
> above code-snippet is still one step away from being something one
> could feed to smtpmail, and makes the output one needs to get from
> org-mime dependent on an MUA (gnus or wanderlust).
>
I personally like this final step of review before sending an email.
As for requiring that the user has an mailer with which to send the
email, it would be possible to change `org-mime-org-buffer-htmlize' to
use `reporter-submit-bug-report' to send the email directly instead of
using `reporter-compose-outgoing' which only prepares the email buffer.
I'm not sure of how to do this while still allowing the existing
behavior for those who do use Emacs for email. Also, I find the idea of
having a key command send an email from an Org-mode buffer without any
form of confirmation terrifying. :)
>
> 2) I don't see the reason for this dependence. Forget what mail
> client the user prefers, whether gnus or wanderlust or something else.
> Why not just feed the output of org-mime to a scratch buffer, run
> (mml-generate-mime) on that, stick the output in a message buffer,
> build a header, and then run smtpmail-send-it?
>
for example, I sometimes like to add a Gcc: header argument to an
outgoing email so that a copy is saved in one of my mail groups.
>
> 3) Okay, I see one reason for the dependence: I guess that mml isn't
> part of the base emacs distribution.
>
Yes, I suppose mml is part of gnus, but as gnus is distributed along
with Emacs this may be something whose availability can be assumed.
>
> 4) And I see another reason: if one wanted to edit the htmlized buffer
> it might be a little more convenient to work with the semi or mml
> representations instead of the mime.
>
yes
>
> But (3) and (4) seem weak to me. What am I missing?
>
My biggest motivation is presented after (1) above.
Best -- Eric
>
> -Ethan
>
>
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-08-10 15:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-26 19:13 Email from org? Ethan Ligon
2010-07-26 19:29 ` Thomas S. Dye
2010-07-26 20:14 ` BKnoth
2010-07-26 20:34 ` Eric Schulte
2010-07-28 23:29 ` Ethan Ligon
2010-07-29 7:08 ` David Maus
2010-07-30 21:21 ` Eric Schulte
2010-07-31 1:25 ` Ethan Ligon
2010-08-10 15:44 ` Eric Schulte [this message]
2010-08-10 21:03 ` David Maus
2010-08-13 9:09 ` Eric S Fraga
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=87k4ny321x.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ligon@are.berkeley.edu \
/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/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.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.