emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* send org subtree as e-mail?
@ 2012-04-03  7:46 Peter Salazar
  2012-04-03 11:09 ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Salazar @ 2012-04-03  7:46 UTC (permalink / raw)
  To: org-mode

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

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

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: send org subtree as e-mail?
  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-11 16:12   ` Peter Salazar
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Schulte @ 2012-04-03 11:09 UTC (permalink / raw)
  To: Peter Salazar; +Cc: org-mode

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/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: send org subtree as e-mail?
  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
  1 sibling, 1 reply; 5+ messages in thread
From: Rainer M Krug @ 2012-04-03 13:35 UTC (permalink / raw)
  To: Eric Schulte; +Cc: org-mode, Peter Salazar

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/04/12 13:09, Eric Schulte 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

Would it be possible to

a) save this mail into a temporary folder and
b) send it with thunderbird

automatically?

Would be very nice.

Rainer


> 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,
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk96/LgACgkQoYgNqgF2egpXswCfe47tisWgWLxRlxLD1TPF14+t
MQEAnjxIpCMyxrwHgL4l2wigqLw7wcL2
=u7rS
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: send org subtree as e-mail?
  2012-04-03 13:35   ` Rainer M Krug
@ 2012-04-03 15:05     ` Eric Schulte
  0 siblings, 0 replies; 5+ messages in thread
From: Eric Schulte @ 2012-04-03 15:05 UTC (permalink / raw)
  To: R.M.Krug; +Cc: org-mode, Peter Salazar

>> 
>> Checkout the `org-mime-subtree' subtree command.  It converts the
>> current subtree to an email, pulling email headers from subtree
>
> Would it be possible to
>
> a) save this mail into a temporary folder and
> b) send it with thunderbird
>
> automatically?
>
> Would be very nice.
>

You could of course write any buffer to a file, and if a specific format
is required I would imagine that there exists a command to write the
email buffer in that format.  Beyond that I think this is a Thunderbird
question.

Best,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: send org subtree as e-mail?
  2012-04-03 11:09 ` Eric Schulte
  2012-04-03 13:35   ` Rainer M Krug
@ 2012-04-11 16:12   ` Peter Salazar
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Salazar @ 2012-04-11 16:12 UTC (permalink / raw)
  To: Eric Schulte; +Cc: org-mode

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-11 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).