From dd299706ece48b8a143d409fd30e455514020c5c Mon Sep 17 00:00:00 2001 From: Sebastian Fischmeister Date: Thu, 21 Aug 2014 05:33:43 +2000 Subject: [PATCH] Re: SVG attachment crashes emacs --- e0/228c51f847bcc80d411dbbb2a41035aa791142 | 221 ++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 e0/228c51f847bcc80d411dbbb2a41035aa791142 diff --git a/e0/228c51f847bcc80d411dbbb2a41035aa791142 b/e0/228c51f847bcc80d411dbbb2a41035aa791142 new file mode 100644 index 000000000..73e49fcd7 --- /dev/null +++ b/e0/228c51f847bcc80d411dbbb2a41035aa791142 @@ -0,0 +1,221 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 182D1431FB6 + for ; Wed, 20 Aug 2014 02:33:57 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id XiDfaW9dyi3d for ; + Wed, 20 Aug 2014 02:33:49 -0700 (PDT) +Received: from mailchk-m06.uwaterloo.ca (mailservices.uwaterloo.ca + [129.97.128.141]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 18EA0431FAF + for ; Wed, 20 Aug 2014 02:33:49 -0700 (PDT) +Received: from connect.uwaterloo.ca (connhub4.connect.uwaterloo.ca + [129.97.149.122]) + by mailchk-m06.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id + s7K9XiPZ026878 + (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=OK); + Wed, 20 Aug 2014 05:33:46 -0400 +Received: from uwaterloo.ca (85.13.1.187) by connhub4.connect.uwaterloo.ca + (129.97.149.122) with Microsoft SMTP Server (TLS) id 14.3.195.1; + Wed, 20 Aug 2014 05:33:43 -0400 +From: Sebastian Fischmeister +To: MaDhAt2r , David Bremner +Subject: Re: SVG attachment crashes emacs +In-Reply-To: + <87a971tehz.fsf@ArchNemesis.i-did-not-set--mail-host-address--so-tickle-me> +References: <8738cvck2g.fsf@uwaterloo.ca> + <87tx5b7yen.fsf@maritornes.cs.unb.ca> <87egwe9vkq.fsf@uwaterloo.ca> + <87r40e7zt9.fsf@maritornes.cs.unb.ca> <87wqa5czwq.fsf@uwaterloo.ca> + <8761hpz2t2.fsf@maritornes.cs.unb.ca> + <87a971tehz.fsf@ArchNemesis.i-did-not-set--mail-host-address--so-tickle-me> +User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-unknown-linux-gnu) +X-Homepage: http://esg.uwaterloo.ca +Date: Wed, 20 Aug 2014 05:33:43 -0400 +Message-ID: <87ha17ijyd.fsf@uwaterloo.ca> +MIME-Version: 1.0 +Content-Type: multipart/mixed; boundary="=-=-=" +X-UUID: fd217b1a-1bda-47e5-90bf-b8e292ddd644 +X-Miltered: at mailchk-m06 with ID 53F46B78.003 by Joe's j-chkmail + (http://j-chkmail.ensmp.fr)! +X-Virus-Scanned: clamav-milter 0.98.3 at mailchk-m06 +X-Virus-Status: Clean +X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 + (mailchk-m06.uwaterloo.ca [129.97.128.141]); + Wed, 20 Aug 2014 05:33:47 -0400 (EDT) +Cc: Notmuch Mail +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +Reply-To: sfischme@uwaterloo.ca +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 20 Aug 2014 09:33:57 -0000 + +--=-=-= +Content-Type: text/plain + +Here's the svg image. + +It seems that the problem is with emacs calling inkscape. Inkscape then +does something that causes emacs to crash. I don't know why emacs calls +inkscape when I open the message with the svg file. + +I can directly open the svg file in emacs and it's displayed correctly. + + Sebastian + + +--=-=-= +Content-Type: image/svg+xml; charset="utf-8" +Content-Disposition: attachment; filename="severity.svg" +Content-Transfer-Encoding: base64 + +PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjwh +LS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoK +PHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHht +bG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0 +cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJo +dHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIw +MDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5l +dC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3Nj +YXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB3aWR0aD0iNDM4LjE0Mjg1IgogICBoZWln +aHQ9IjIwOS41NzE0MSIKICAgaWQ9InN2ZzIiCiAgIHZlcnNpb249IjEuMSIKICAgaW5rc2NhcGU6 +dmVyc2lvbj0iMC40OC41IHIxMDA0MCIKICAgc29kaXBvZGk6ZG9jbmFtZT0ic2V2ZXJpdHkuc3Z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gICAgICAgIHNvZGlwb2RpOnJvbGU9 +ImxpbmUiPnNldmVyaXR5MTwvdHNwYW4+PC90ZXh0PgogICAgICA8dGV4dAogICAgICAgICBzb2Rp +cG9kaTpsaW5lc3BhY2luZz0iMTI1JSIKICAgICAgICAgaWQ9InRleHQzNzgxIgogICAgICAgICB5 +PSI1NDQuNzYwNSIKICAgICAgICAgeD0iMzYyLjEzOTY4IgogICAgICAgICBzdHlsZT0iZm9udC1z +aXplOjQwcHg7Zm9udC1zdHlsZTpub3JtYWw7Zm9udC13ZWlnaHQ6bm9ybWFsO2xpbmUtaGVpZ2h0 +OjEyNSU7bGV0dGVyLXNwYWNpbmc6MHB4O3dvcmQtc3BhY2luZzowcHg7ZmlsbDojMDAwMDAwO2Zp +bGwtb3BhY2l0eToxO3N0cm9rZTpub25lO2ZvbnQtZmFtaWx5OlNhbnMiCiAgICAgICAgIHhtbDpz +cGFjZT0icHJlc2VydmUiPjx0c3BhbgogICAgICAgICAgIHN0eWxlPSJmb250LXNpemU6MTVweCIK +ICAgICAgICAgICB5PSI1NDQuNzYwNSIKICAgICAgICAgICB4PSIzNjIuMTM5NjgiCiAgICAgICAg +ICAgaWQ9InRzcGFuMzc4MyIKICAgICAgICAgICBzb2RpcG9kaTpyb2xlPSJsaW5lIj5zZXZlcml0 +eTI8L3RzcGFuPjwvdGV4dD4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPgo= +--=-=-= +Content-Type: text/plain + + + +MaDhAt2r writes: + +> I am on arch, you could send me the sample image and I will see if it +> works on my end. +> +> On Aug 18 at 08:27 PM, David Bremner scrawled: +>> Sebastian Fischmeister writes: +>> +>>> GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of +>>> 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc +>>> +>>> ~$ notmuch --version +>>> notmuch 0.18.1 +>>> +>>> What happens is that emacs invokes inkscape to do something to the svg. +>>> +>> +>> I wonder if this is specific to the way emacs is compiled on arch. I +>> just deleted inkscape and the image you sent me still renders fine on +>> Debian testing, same emacs and notmuch version. +>> +>> Out of curiousity, is your emacs linked to libxml2? +>> +>> It could also be something to do with mime type configuration, which is +>> a bit of an impenetrable thicket to me. +>> +>> d +>> _______________________________________________ +>> notmuch mailing list +>> notmuch@notmuchmail.org +>> http://notmuchmail.org/mailman/listinfo/notmuch + +--=-=-=-- -- 2.26.2