From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: problem with mime conversion for emails Date: Sun, 29 Aug 2010 14:52:10 -0600 Message-ID: <87zkw5jg5h.fsf@gmail.com> References: <87hbiddw4m.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44863 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OporR-0001zx-VH for emacs-orgmode@gnu.org; Sun, 29 Aug 2010 16:52:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OporQ-0007M6-Hk for emacs-orgmode@gnu.org; Sun, 29 Aug 2010 16:52:17 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:37394) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OporQ-0007Lr-AD for emacs-orgmode@gnu.org; Sun, 29 Aug 2010 16:52:16 -0400 Received: by pxi5 with SMTP id 5so3658854pxi.0 for ; Sun, 29 Aug 2010 13:52:14 -0700 (PDT) In-Reply-To: <87hbiddw4m.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 29 Aug 2010 21:03:37 +0100") 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 S Fraga Cc: org-mode mailing list Hi Eric, An easy fix may be using the `org-mime-html-hook' to post-process the html, the following (untested) should be sufficient. --8<---------------cut here---------------start------------->8--- (add-hook 'org-mime-html-hook (lambda () (replace-regexp (regexp-quote "X") " "))) --8<---------------cut here---------------end--------------->8--- To me, this seems easier than having an email-specific export target. Best -- Eric Eric S Fraga writes: > Hello, > > I am hoping somebody can suggest a workaround for a simple problem > with org-mime. Specifically, I am in charge of a project in which I > need to email around a to do list with checkboxes. I have been using > PDF export for this and this works perfectly fine. However, given the > existence of org-mime, I thought this would remove a step from those > reading my emails. > > The problem is that the HTML conversion for checkbox lists uses the > construct > > : X > > (generated on line 1765 of org-html.el) to fill in the checkboxes for > items *not* done. Unfortunately, the visibility attribute is ignored > by some email readers, with /Gmail/ being one of the prominent guilty > ones. This makes my todo lists look like everything is already done > and we can all go home early! How I wish this were true... ;-) > > The whole reason for the use of the visibility attribute, I assume, is > to line entries up. > > I am happy to do some post-processing on the HTML output but I think a > better solution may be to do this export differently. Does anybody > have any suggestions? Would replacing the X in the above with   > be good enough? > > Thanks, > eric