From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: [ANN] org-mime -- using orgmode to send html mail? Date: Fri, 9 Apr 2010 13:41:12 -0400 Message-ID: References: <87y6h85pid.fsf_-_@gmail.com> <87fx3g1cld.fsf@stats.ox.ac.uk> <87eij05had.fsf@gmail.com> <878w98w4sz.fsf@stats.ox.ac.uk> <87sk7f8d6x.fsf@gmail.com> <87aatizcef.fsf@gmail.com> <71591C25-1B0B-4162-A53C-16DB9436C0F3@gmail.com> <8739z9c3vq.fsf@gmail.com> <8739z44lyl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1872666361==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O0ICj-0001oR-Rz for emacs-orgmode@gnu.org; Fri, 09 Apr 2010 13:41:17 -0400 Received: from [140.186.70.92] (port=54703 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O0ICh-0001nm-VF for emacs-orgmode@gnu.org; Fri, 09 Apr 2010 13:41:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O0ICg-00048P-Kw for emacs-orgmode@gnu.org; Fri, 09 Apr 2010 13:41:15 -0400 Received: from mail-iw0-f176.google.com ([209.85.223.176]:38000) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O0ICg-00048C-G5 for emacs-orgmode@gnu.org; Fri, 09 Apr 2010 13:41:14 -0400 Received: by iwn6 with SMTP id 6so2432623iwn.26 for ; Fri, 09 Apr 2010 10:41:13 -0700 (PDT) In-Reply-To: <8739z44lyl.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============1872666361== Content-Type: multipart/alternative; boundary=001485e7e61a2f37760483d14d50 --001485e7e61a2f37760483d14d50 Content-Type: text/plain; charset=ISO-8859-1 eric, this looks great -- On Fri, Apr 9, 2010 at 12:41 PM, Eric Schulte wrote: > > Setup > > org-mime exposes two functions > `org-mime-htmlize' can be called from within a mail composition buffer to > export either the entire buffer or just the active region to html, and embed > the results into the buffer as a text/html mime section. > > org-mime-htmlize is an interactive Lisp function in `org-mime.el'. > > (org-mime-htmlize ARG) > > Export a portion of an email body composed using `mml-mode' to > html using `org-mode'. If called with an active region only > export that region, otherwise export the entire body. > > `org-mime-org-buffer-htmlize' can be called from within an Org-mode > buffer to export either the whole buffer or the narrowed subtree or active > region to HTML, and open a new email buffer including the resulting HTML > content as an embedded mime section. > > org-mime-org-buffer-htmlize is an interactive Lisp function in > `org-mime.el'. > > (org-mime-org-buffer-htmlize) > > Export the current org-mode buffer to HTML using > `org-export-as-html' and package the results into an email > handling with appropriate MIME encoding. > > The following key bindings are suggested, which bind the C-c M-o key > sequence to the appropriate org-mime function in both email and Org-mode > buffers. > > (add-hook 'message-mode-hook > (lambda () > (local-set-key "\C-c\M-o" 'org-mime-htmlize))) > (add-hook 'org-mode-hook > (lambda () > (local-set-key "\C-c\M-o" 'org-mime-org-buffer-htmlize))) > > Just quickly -- so if I'm using wanderlust, will the resultant message still be properly formatted? I remember there was some discussion about the separation syntax in different mailers but don'tremember how it turned out. thanks for this -- man, does it look good in html! matt --001485e7e61a2f37760483d14d50 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
eric, this looks great --
On Fri, Apr 9, = 2010 at 12:41 PM, Eric Schulte <schulte.eric@gmail.com>= wrote:

Setup

org-mime exposes two functions

`org-mime-htmlize'
can be called from within a mail composition buffer to export either the entire buffer or just the active region to html, and embed the results into the buffer as a text/html mime section.
org-mime-htmlize is an interactive Lisp function in `org-=
mime.el'.

(org-mime-htmlize ARG)

Export a portion of an email body composed using `mml-mode' to
html using `org-mode'.  If called with an active region only
export that region, otherwise export the entire body.
`org-mime-org-buffer-htmlize'
can be called from within an Org-mode buffer to export either the whole buffer or the narrowed subtree or active region to HTML, and open a new email buffer including the resulting HTML content as an embedded mime section.
org-mime-org-buffer-htmlize is an interactive Lisp functi=
on in
`org-mime.el'.

(org-mime-org-buffer-htmlize)

Export the current org-mode buffer to HTML using
`org-export-as-html' and package the results into an email
handling with appropriate MIME encoding.

The following key bindings are suggested, which bind the C-c M-o key sequence to the appropriate org-mime function in both email an= d Org-mode buffers.

(add-ho=
ok 'message-mode-hook
          (lambda ()
            (local-set-ke=
y "\C-c\M-o" =
9;org-mime-htmlize)))

(add-hook 'org-mode-h=
ook
          (lambda ()
            (local-set-ke=
y "\C-c\M-o" =
9;org-mime-org-buffer-htmlize)))=

Just quickly -- so if I'm using= wanderlust, will the resultant message still be properly formatted?=A0 I r= emember there was some discussion about the separation syntax in different = mailers but don'tremember how it turned out.=A0 thanks for this -- man,= does it look good in html!

matt
--001485e7e61a2f37760483d14d50-- --===============1872666361== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1872666361==--