From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: send org subtree as e-mail? Date: Tue, 3 Apr 2012 03:46:03 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04448147a9c48b04bcc17f2c Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEyRQ-000343-EY for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 03:46:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEyRK-0007Yb-7U for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 03:46:12 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:62402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEyRJ-0007YI-Uf for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 03:46:06 -0400 Received: by werj55 with SMTP id j55so2858069wer.0 for ; Tue, 03 Apr 2012 00:46:03 -0700 (PDT) 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 To: org-mode --f46d04448147a9c48b04bcc17f2c Content-Type: text/plain; charset=ISO-8859-1 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 --f46d04448147a9c48b04bcc17f2c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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 viewin= g the subtree in an indirect buffer.=A0

My org fil= es look like this:

* e-mails
=A0 ** note to person about blah
=A0= =A0 =A0To: person@blah.com
=A0 =A0 =A0Subject: ADD people 7 times more likely to be creative=A0 =A0 =A0--text follows this line--
=A0 =A0 =A0
=A0 =A0 =A0Dear Person,
=A0 =A0 =A0
=A0 =A0 =A0Blah blah blah.=A0
=A0 =A0 =A0
=A0 = =A0 =A0Best,
=A0 =A0 =A0Peter

I can open= the subtree in an indirect buffer, but=A0I can't e-mail the contents a= s they appear because I get "Invalid header line."=A0

If I delete the org-header, I can successfully send the= e-mail. But then I need to undelete the header afterward.=A0
How can I send the contents of a subtree as an e-mail without f= irst=A0having to delete the header?=A0

Thanks,
Peter
--f46d04448147a9c48b04bcc17f2c-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: send org subtree as e-mail? Date: Tue, 03 Apr 2012 07:09:35 -0400 Message-ID: <87hax1rs0g.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF3Uu-0006lm-AD for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 09:10:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SF3Ud-00023f-BZ for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 09:10:07 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:58151 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SF3Ud-0001xN-54 for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 09:09:51 -0400 In-Reply-To: (Peter Salazar's message of "Tue, 3 Apr 2012 03:46:03 -0400") 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 To: Peter Salazar Cc: org-mode Peter Salazar 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: send org subtree as e-mail? Date: Tue, 03 Apr 2012 15:35:53 +0200 Message-ID: <4F7AFCB9.30008@gmail.com> References: <87hax1rs0g.fsf@gmx.com> Reply-To: R.M.Krug@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF3u6-0006KN-Rh for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 09:36:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SF3u0-0002V5-Fn for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 09:36:10 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:60292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF3u0-0002Ti-5r for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 09:36:04 -0400 Received: by eeke53 with SMTP id e53so1182792eek.0 for ; Tue, 03 Apr 2012 06:35:55 -0700 (PDT) In-Reply-To: <87hax1rs0g.fsf@gmx.com> 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 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 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----- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: send org subtree as e-mail? Date: Tue, 03 Apr 2012 11:05:39 -0400 Message-ID: <87zkasrh30.fsf@gmx.com> References: <87hax1rs0g.fsf@gmx.com> <4F7AFCB9.30008@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF7B1-0000eU-EP for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 13:05:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SF7Aw-0004GF-7X for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 13:05:50 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:49667) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SF7Av-0004Fu-VT for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 13:05:46 -0400 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 To: R.M.Krug@gmail.com 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/ From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Salazar Subject: Re: send org subtree as e-mail? Date: Wed, 11 Apr 2012 12:12:08 -0400 Message-ID: References: <87hax1rs0g.fsf@gmx.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043bde664cafd904bd69801c Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI09X-0004mU-N0 for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:12:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SI09T-0007Lw-CX for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:12:15 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:45127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SI09T-0007La-0U for emacs-orgmode@gnu.org; Wed, 11 Apr 2012 12:12:11 -0400 Received: by werj55 with SMTP id j55so860020wer.0 for ; Wed, 11 Apr 2012 09:12:08 -0700 (PDT) In-Reply-To: <87hax1rs0g.fsf@gmx.com> 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 To: Eric Schulte Cc: org-mode --f46d043bde664cafd904bd69801c Content-Type: text/plain; charset=ISO-8859-1 Wow, that worked perfectly. Thank you! On Tue, Apr 3, 2012 at 7:09 AM, Eric Schulte wrote: > Peter Salazar 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/ > --f46d043bde664cafd904bd69801c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Wow, that worked perfectly. Thank you!=A0


On Tue, Apr 3, 2012 at 7:09 AM, Eric Schulte <eric.schulte@gmx.com> w= rote:
Pete= r Salazar <cycleofsong@gmail.co= m> 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
> =A0 ** note to person about blah
> =A0 =A0 =A0To: person@blah.com<= br> > =A0 =A0 =A0Subject: ADD people 7 times more likely to be creative
> =A0 =A0 =A0--text follows this line--
>
> =A0 =A0 =A0Dear Person,
>
> =A0 =A0 =A0Blah blah blah.
>
> =A0 =A0 =A0Best,
> =A0 =A0 =A0Peter
>
> I can open the subtree in an indirect buffer, but I can't e-mail t= he
> contents as they appear because I get "Invalid header line."=
>
> If I delete the org-header, I can successfully send the e-mail. But th= en I
> need to undelete the header afterward.
>
> How can I send the contents of a subtree as an e-mail without first ha= ving
> to delete the header?
>
> Thanks,
> Peter

Checkout the `org-mime-subtree' subtree command. =A0It conv= erts 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
=A0 :PROPERTIES:
=A0 :MAIL_TO: =A0person@blah.com =A0 :MAIL_SUBJECT: ADD people 7 times more likely to be creative
=A0 :END:
=A0 Dear Person,

=A0 Blah blah blah.

=A0 Best,
=A0 Peter

Cheers,

--
Eric Schulte
http://cs.unm.ed= u/~eschulte/

--f46d043bde664cafd904bd69801c--