Re: Hi all
[notmuch-archives.git] / f8 / e9643c5ecd951acce6945d733b6184106c6613
1 Return-Path: <micah@dukefoo.com>\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 11EB9431FB6\r
6         for <notmuch@notmuchmail.org>; Thu, 31 Jul 2014 17:30:46 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 OhXK8hVdAmWk for <notmuch@notmuchmail.org>;\r
16         Thu, 31 Jul 2014 17:30:38 -0700 (PDT)\r
17 Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com\r
18         [209.85.214.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 27C1B431FAE\r
21         for <notmuch@notmuchmail.org>; Thu, 31 Jul 2014 17:30:38 -0700 (PDT)\r
22 Received: by mail-ob0-f176.google.com with SMTP id wo20so2137641obc.7\r
23         for <notmuch@notmuchmail.org>; Thu, 31 Jul 2014 17:30:36 -0700 (PDT)\r
24 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
25         d=1e100.net; s=20130820;\r
26         h=x-gm-message-state:from:to:subject:user-agent:date:message-id\r
27         :mime-version:content-type;\r
28         bh=EBYPq8vFc+BvT+Hw67lhxvYlPdjtmZRLEALd5ROoMBE=;\r
29         b=PaR38+5X9x+0hj/JrHr4GYGcZJ5aElyIhzOLBlXsIPA5ODCm8iQ3fvkEA8xM0dKibW\r
30         SRRkcanECSIV04orHCBs/RHrcTH5YHp5h4JjSVBlkLPmuMkAZADz1q9jzLnBpZWASaNz\r
31         j895CFU7bndheV2k9VOjGZJ5Xjo04V1GxAUbX0FKldBI0M2NaGGw/TZOaANZmADeRid2\r
32         C3bvck6xWCL6/7F3lex7iM4KhAEL7wwurgj58JBjnanuWzMBI/mAvteyBwfSF7htn/wG\r
33         Qgds3Ct8qc9Bc+kMyO3ihczxPzc1G47yYHMGz2v3Ib45pZVPVyyeTVbMNPmxAxiQQQkh\r
34         Wiag==\r
35 X-Gm-Message-State:\r
36  ALoCoQmDlsPvJePFeAAAF2/tkkvnTsofJk4QtpovK7GseTe1nE1lGSzsac1BefaO70hBwIRQGmZG\r
37 X-Received: by 10.182.106.137 with SMTP id gu9mr2516984obb.7.1406853036433;\r
38         Thu, 31 Jul 2014 17:30:36 -0700 (PDT)\r
39 Received: from localhost (216-177-191-101.block0.gvtc.com. [216.177.191.101])\r
40         by mx.google.com with ESMTPSA id\r
41         d3sm28948413oez.5.2014.07.31.17.30.35 for <notmuch@notmuchmail.org>\r
42         (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
43         Thu, 31 Jul 2014 17:30:36 -0700 (PDT)\r
44 From: MaDhAt2r <micah@dukefoo.com>\r
45 X-Google-Original-From: MaDhAt2r <madhat2r@dukefoo.com>\r
46 To: notmuch@notmuchmail.org\r
47 Subject: Custom Tag Images\r
48 User-Agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1\r
49         (x86_64-unknown-linux-gnu)\r
50 Date: Thu, 31 Jul 2014 19:30:28 -0500\r
51 Message-ID:\r
52  <87egx1kq57.fsf@ArchNemesis.i-did-not-set--mail-host-address--so-tickle-me>\r
53 MIME-Version: 1.0\r
54 Content-Type: text/plain\r
55 X-Mailman-Approved-At: Mon, 04 Aug 2014 10:40:50 -0700\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Fri, 01 Aug 2014 00:30:46 -0000\r
69 \r
70 \r
71 Hello Everyone.\r
72 \r
73  If this is not the place to address this issue, could you please\r
74  direct me to the proper forum.\r
75 \r
76  Info: Using Emacs 24.3.1 on ArchLinux\r
77 \r
78  I am interested in setting up custom image for some of the tags I use.\r
79 \r
80  I have tried to use a svg file by setting it in the following ways:\r
81 \r
82  (defun notmuch-tag-list-icon ()\r
83    "Return SVG data representing a list.\r
84  This can be used with `notmuch-tag-format-image-data'."\r
85 \r
86  " <?xml version=\"1.0\" encoding=\"utf-8\"?>\r
87  <!-- Generated by IcoMoon.io -->\r
88  <!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r
89  <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
90  <g id=\"icomoon-ignore\">\r
91          <line stroke-width=\"1\" x1=\"\" y1=\"\" x2=\"\" y2=\"\" stroke=\"#449FDB\" opacity=\"\"></line>\r
92  </g>\r
93          <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
94  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
95  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
96  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
97  </svg> ")\r
98 \r
99  and setting it like I do the default images. e.g.\r
100  (setq notmuch-tag-formats '(\r
101                              ("flagged" (notmuch-tag-format-image-data tag (notmuch-tag-star-icon)))\r
102                              ("lists" (notmuch-tag-format-image-data tag (notmuch-tag-list-icon)))\r
103                              ))\r
104 \r
105  I have also tried via the customize image setting and using the path to\r
106  the file.\r
107 \r
108  Both ways produce nothing but a colored rectangle.\r
109 \r
110  I have downloaded the file in question from http://IcoMoon.io\r
111 \r
112  Am I missing something obvious here, or is this svg perhaps formatted\r
113  incorrectly for notmuch emacs?\r
114 \r
115  Any pointers in the right direction are greatly appreciated.\r
116 \r
117  Thanks.\r