emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Peter Salazar <cycleofsong@gmail.com>
To: Eric Schulte <eric.schulte@gmx.com>
Cc: org-mode <emacs-orgmode@gnu.org>
Subject: Re: send org subtree as e-mail?
Date: Wed, 11 Apr 2012 12:12:08 -0400	[thread overview]
Message-ID: <CAE+_6TzBZ0tNaN-5_FPkWtwMLAD6zSf-oGmgeTdOKZn1frB+Ew@mail.gmail.com> (raw)
In-Reply-To: <87hax1rs0g.fsf@gmx.com>

[-- Attachment #1: Type: text/plain, Size: 1729 bytes --]

Wow, that worked perfectly. Thank you!


On Tue, Apr 3, 2012 at 7:09 AM, Eric Schulte <eric.schulte@gmx.com> wrote:

> Peter Salazar <cycleofsong@gmail.com> writes:
>
> > I frequently compose e-mails as subtrees of my org files. I'd like to be
> > able to e-mail the contents of these subtrees, maybe by first viewing the
> > subtree in an indirect buffer.
> >
> > My org files look like this:
> >
> > * e-mails
> >   ** note to person about blah
> >      To: person@blah.com
> >      Subject: ADD people 7 times more likely to be creative
> >      --text follows this line--
> >
> >      Dear Person,
> >
> >      Blah blah blah.
> >
> >      Best,
> >      Peter
> >
> > I can open the subtree in an indirect buffer, but I can't e-mail the
> > contents as they appear because I get "Invalid header line."
> >
> > If I delete the org-header, I can successfully send the e-mail. But then
> I
> > need to undelete the header afterward.
> >
> > How can I send the contents of a subtree as an e-mail without first
> having
> > to delete the header?
> >
> > Thanks,
> > Peter
>
> Checkout the `org-mime-subtree' subtree command.  It converts the
> current subtree to an email, pulling email headers from subtree
> properties, specifically
>
> MAIL_SUBJECT or subtree heading -> subject
> MAIL_TO -> TO
> MAIL_CC -> CC
> MAIL_BCC -> BCC
> MAIL_FMT -> determines the format of the email (e.g., org, ascii or html)
>
> so your example above would be
>
> ** note to person about blah
>    :PROPERTIES:
>   :MAIL_TO:  person@blah.com
>   :MAIL_SUBJECT: ADD people 7 times more likely to be creative
>   :END:
>    Dear Person,
>
>   Blah blah blah.
>
>   Best,
>   Peter
>
> Cheers,
>
> --
> Eric Schulte
> http://cs.unm.edu/~eschulte/
>

[-- Attachment #2: Type: text/html, Size: 2628 bytes --]

      parent reply	other threads:[~2012-04-11 16:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-03  7:46 send org subtree as e-mail? Peter Salazar
2012-04-03 11:09 ` Eric Schulte
2012-04-03 13:35   ` Rainer M Krug
2012-04-03 15:05     ` Eric Schulte
2012-04-11 16:12   ` Peter Salazar [this message]

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=CAE+_6TzBZ0tNaN-5_FPkWtwMLAD6zSf-oGmgeTdOKZn1frB+Ew@mail.gmail.com \
    --to=cycleofsong@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=eric.schulte@gmx.com \
    /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).