1 Return-Path: <amdragon@mit.edu>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 36B57431FBD
\r
6 for <notmuch@notmuchmail.org>; Mon, 4 Aug 2014 11:09:17 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id eDkkH158KmnU for <notmuch@notmuchmail.org>;
\r
16 Mon, 4 Aug 2014 11:09:12 -0700 (PDT)
\r
17 Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu
\r
19 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id A6279431FAE
\r
22 for <notmuch@notmuchmail.org>; Mon, 4 Aug 2014 11:09:12 -0700 (PDT)
\r
23 X-AuditID: 1209190c-f79ef6d000005dd6-72-53dfcc47b425
\r
24 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])
\r
25 (using TLS with cipher AES256-SHA (256/256 bits))
\r
26 (Client did not present a certificate)
\r
27 by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP
\r
28 id DC.DE.24022.74CCFD35; Mon, 4 Aug 2014 14:09:12 -0400 (EDT)
\r
29 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])
\r
30 by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id s74I9AvM002102;
\r
31 Mon, 4 Aug 2014 14:09:11 -0400
\r
32 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
33 (authenticated bits=0)
\r
34 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
35 by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s74I98on025215
\r
36 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
\r
37 Mon, 4 Aug 2014 14:09:09 -0400
\r
38 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.80)
\r
39 (envelope-from <amdragon@mit.edu>)
\r
40 id 1XEMh2-0005iK-93; Mon, 04 Aug 2014 14:09:08 -0400
\r
41 Date: Mon, 4 Aug 2014 14:09:08 -0400
\r
42 From: Austin Clements <amdragon@MIT.EDU>
\r
43 To: MaDhAt2r <madhat2r@dukefoo.com>
\r
44 Subject: Re: Custom Tag Images
\r
45 Message-ID: <20140804180908.GV13893@mit.edu>
\r
47 <877g2stcn1.fsf@ArchNemesis.i-did-not-set--mail-host-address--so-tickle-me>
\r
49 Content-Type: text/plain; charset=us-ascii
\r
50 Content-Disposition: inline
\r
52 <877g2stcn1.fsf@ArchNemesis.i-did-not-set--mail-host-address--so-tickle-me>
\r
53 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
54 X-Brightmail-Tracker:
\r
55 H4sIAAAAAAAAA+NgFmpkleLIzCtJLcpLzFFi42IR4hTV1vU4cz/YYEaWxfXte1gtrt+cyezA
\r
56 5LFz9mZmj2erbjEHMEVx2aSk5mSWpRbp2yVwZez4+Iul4L9YxcEJR9gaGO8JdTFyckgImEjs
\r
57 2vmBGcIWk7hwbz1bFyMXh5DAbCaJXf/msEM4Gxglfj9uZIVwTjFJnOgHKeMEcpYwStz7kARi
\r
58 swioSMz+0MMCYrMJaEhs27+cEcQWEVCW2NVwFWwFs4C0xLffzUwgtrCAnMT/RY1ANgcHr4CO
\r
59 xKEHzBAjwyXae+aAjecVEJQ4OfMJC0SrlsSNfy/BykHGLP/HARLmFIiQuLb4L1iJKNAFU05u
\r
60 Y5vAKDQLSfcsJN2zELoXMDKvYpRNya3SzU3MzClOTdYtTk7My0st0jXUy80s0UtNKd3ECA5p
\r
61 SZ4djG8OKh1iFOBgVOLhFVC7HyzEmlhWXJl7iFGSg0lJlHfncaAQX1J+SmVGYnFGfFFpTmrx
\r
62 IUYJDmYlEd64U0A53pTEyqrUonyYlDQHi5I471trq2AhgfTEktTs1NSC1CKYrAwHh5IE712Q
\r
63 RsGi1PTUirTMnBKENBMHJ8hwHqDhVWDDiwsSc4sz0yHypxgVpcR5E0ESAiCJjNI8uF5YynnF
\r
64 KA70ijAvy2mgKh5guoLrfgU0mAlosJkO2OCSRISUVAOjxQWfMuvbBU6zNLobD1YtrG9InNbm
\r
65 IWa3m4m1IMzzsdKP5tnJssc7PR+7PD5d8ar96Im7+U0Pdh//Hiv7JtT8FtcJpmLvtIKyQ6ER
\r
66 96au5T5mXf1cneeZ+uWylwa25av4plX90zrR2hrpWvaa05Pj3LP9mgI6V3Yrvz17MHpfHuMN
\r
67 rb7G7tlKLMUZiYZazEXFiQBnipH6FAMAAA==
\r
68 Cc: notmuch@notmuchmail.org
\r
69 X-BeenThere: notmuch@notmuchmail.org
\r
70 X-Mailman-Version: 2.1.13
\r
72 List-Id: "Use and development of the notmuch mail system."
\r
73 <notmuch.notmuchmail.org>
\r
74 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
75 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
76 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
77 List-Post: <mailto:notmuch@notmuchmail.org>
\r
78 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
79 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
80 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
81 X-List-Received-Date: Mon, 04 Aug 2014 18:09:17 -0000
\r
83 Quoth MaDhAt2r on Aug 01 at 11:09 am:
\r
87 > If this is not the place to address this issue, could you please
\r
88 > direct me to the proper forum.
\r
90 Hi MaDhAt2r. This is a fine place for this question. (Though I see
\r
91 the list received several copies of your message; not sure if that was
\r
92 a misconfiguration on your end or the list's.)
\r
94 > Info: Using Emacs 24.3.1 on ArchLinux
\r
96 > I am interested in setting up custom image for some of the tags I use.
\r
98 > I have tried to use a svg file by setting it in the following ways:
\r
100 > (defun notmuch-tag-list-icon ()
\r
101 > "Return SVG data representing a list.
\r
102 > This can be used with `notmuch-tag-format-image-data'."
\r
104 > " <?xml version=\"1.0\" encoding=\"utf-8\"?>
\r
106 I believe you need to remove the space between the " and the <?xml
\r
107 here. I haven't tried the rest of your code, but when I insert an
\r
108 image with this SVG data directly, the *Messages* buffer reports
\r
109 "Error parsing SVG image". Removing this space fixes the error and
\r
110 Emacs appears to render a reasonable image.
\r
114 > <!-- Generated by IcoMoon.io -->
\r
115 > <!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">
\r
116 > <svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\">
\r
117 > <g id=\"icomoon-ignore\">
\r
118 > <line stroke-width=\"1\" x1=\"\" y1=\"\" x2=\"\" y2=\"\" stroke=\"#449FDB\" opacity=\"\"></line>
\r
120 > <path d=\"M4 10.4h-0.8c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8h0.8c0.442 0 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8zM4 7.2h-0.8c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8
\r
121 > 0.8h0.8c0.442 0 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8zM4 4h-0.8c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8h0.8c0.442 0 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8zM7.2 5.6h5.6c0.442 0
\r
122 > 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8h-5.6c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8zM12.8 7.2h-5.6c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8h5.6c0.442 0 0.8-0.358
\r
123 > 0.8-0.8s-0.358-0.8-0.8-0.8zM12.8 10.4h-5.6c-0.442 0-0.8 0.358-0.8 0.8s0.358 0.8 0.8 0.8h5.6c0.442 0 0.8-0.358 0.8-0.8s-0.358-0.8-0.8-0.8z\" fill=\"#008b00\"></path>
\r
126 > and setting it like I do the default images. e.g.
\r
127 > (setq notmuch-tag-formats '(
\r
128 > ("flagged" (notmuch-tag-format-image-data tag (notmuch-tag-star-icon)))
\r
129 > ("lists" (notmuch-tag-format-image-data tag (notmuch-tag-list-icon)))
\r
132 > I have also tried via the customize image setting and using the path to
\r
135 > Both ways produce nothing but a colored rectangle.
\r
137 > I have downloaded the file in question from http://IcoMoon.io
\r
139 > Am I missing something obvious here, or is this svg perhaps formatted
\r
140 > incorrectly for notmuch emacs?
\r
142 > Any pointers in the right direction are greatly appreciated.
\r