From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?S=C3=A9bastien?= Delafond Subject: org-mime spurious alternative Date: Tue, 10 Jun 2014 15:15:49 +0000 (UTC) Message-ID: <20140610171252.707@usenet.piggo.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuNmd-0006HN-OJ for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 11:16:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuNmV-0002Km-BN for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 11:16:19 -0400 Received: from plane.gmane.org ([80.91.229.3]:33486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuNmV-0002KO-5x for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 11:16:11 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WuNmL-0005Lw-Dc for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 17:16:01 +0200 Received: from static.60.129.47.78.clients.your-server.de ([78.47.129.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jun 2014 17:16:01 +0200 Received: from sdelafond by static.60.129.47.78.clients.your-server.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jun 2014 17:16:01 +0200 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: emacs-orgmode@gnu.org Hello, from Debian bug #751014 (http://bugs.debian.org/751014): When org-mime-library is set to semi, org-mime generates a spurious alternative section around the HTML part. This is due to two bugs in the function org-mime-multipart: 1. it attempts to put a multipart/alternative section around the HTML, where it should be putting a multipart/related part; 2. it tests for the presence of images by doing "(when images ...)", which triggers when images is the empty string (somebody has been programming in Python or Javascript?). To repeat: M-x load-library "org-mime" RET M-: (setq org-mime-library 'semi) RET M-x wl RET w Then insert some text below the separator line, and do M-x org-mime-htmlize and see the breakage. Cheers, --Seb