From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [ANN] org-mime -- using orgmode to send html mail? Date: Wed, 14 Apr 2010 09:39:25 +0100 Message-ID: <87pr225sxu.wl%ucecesf@ucl.ac.uk> References: <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> <87bpdoio0j.fsf@gmail.com> <87mxx6hmvw.fsf@gmail.com> Reply-To: e.fraga@ucl.ac.uk Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1yte-0003jO-IK for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 05:28:34 -0400 Received: from [140.186.70.92] (port=59585 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1ytc-0003jF-Me for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 05:28:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1yta-0003C5-Ag for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 05:28:32 -0400 Received: from vscane-c.ucl.ac.uk ([144.82.108.43]:56371) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1yta-0003Br-2c for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 05:28:30 -0400 In-Reply-To: <87mxx6hmvw.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: Eric Schulte Cc: emacs-orgmode@gnu.org On Tue, 13 Apr 2010 18:57:07 -0600, "Eric Schulte" wrote: > > So, for some reason the `org-mime-org-export' helper function is > returning nil on your (and Eric's) machines. Could you try evaluating > (C-M-x) the following in your *scratch* buffer? > > (insert (org-mime-org-export "html" "- first > - second > - third" (make-temp-file "quick-test"))) I get exactly the same as you do. > to export a non-html buffer to html, or you could also try starting up > Emacs with the -Q option, then loading org-mime.el, opening an org-mode > file, and calling org-mime-org-buffer-htmlize, and sending an email to > yourself. Interesting. This fails for me: 1. emacs -Q 2. in *scratch*: set load path appropriately, (require 'org-install), (require 'org-mime) 3. visit org test buffer 4. invoke org-mime-org-buffer-htmlize which fails with org-mime-file: Symbol's function definition is void: case although the HTML has been created and pushed to the kill ring according to the *Messages* buffer. 5. so try (require 'cl) 6. try org-mime-org-buffer-htmlize again and now there is no error but the output is: ,---- | <#multipart type=alternative><#part type=text/plain> | * Testing mime in org | | This file will provide a simple test for the new mime encoding and | exporting features in org-mode. | | The most interesting aspect may be the use of \(y = \sum_i^n x_i^2\) | and, please, see the figure: | | [[./mip.png]] | <#part type=text/html>nil<#/multipart> | <#part type="image/png" filename="/home/ucecesf/s/test/mip.png" id="<_home_ucecesf_s_test_mip.png>"> | <#/part> `---- I hope some of this might help identify where the problem may lie? I can obviously send you my full org environment if you wish. I'm also happy to debug the org-mime code directly if you give me some idea of where to look! Thanks, eric