Custom Tag Images
authorMaDhAt2r <micah@dukefoo.com>
Fri, 1 Aug 2014 00:34:36 +0000 (19:34 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:00 +0000 (10:04 -0800)
cf/98d48f71060b1b578bd26946083cf6f0f6a4b5 [new file with mode: 0644]

diff --git a/cf/98d48f71060b1b578bd26946083cf6f0f6a4b5 b/cf/98d48f71060b1b578bd26946083cf6f0f6a4b5
new file mode 100644 (file)
index 0000000..079e0ca
--- /dev/null
@@ -0,0 +1,117 @@
+Return-Path: <micah@dukefoo.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1CA12431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 31 Jul 2014 17:34:39 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id yXumY2NPnmuN for <notmuch@notmuchmail.org>;\r
+       Thu, 31 Jul 2014 17:34:39 -0700 (PDT)\r
+Received: from mail-ob0-f176.google.com (mail-ob0-f176.google.com\r
+       [209.85.214.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E4C9F431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 31 Jul 2014 17:34:38 -0700 (PDT)\r
+Received: by mail-ob0-f176.google.com with SMTP id wo20so2171495obc.35\r
+       for <notmuch@notmuchmail.org>; Thu, 31 Jul 2014 17:34:38 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:subject:user-agent:date:message-id\r
+       :mime-version:content-type;\r
+       bh=EBYPq8vFc+BvT+Hw67lhxvYlPdjtmZRLEALd5ROoMBE=;\r
+       b=JQQ5W8AYWk1YUmEr3AjYvGWZfGPa9AAAm8LqO9SWh65hyIWpgVMrYJnqsdc6lBteDV\r
+       3HrSmklPfbgyBQeznRJSJZeWubAGq9WiIg6coY7eQ9iuOxIBc9YPTyq5vCvZHn+v73XQ\r
+       qviPvabd1WMeiQiltG2nC4siCDx7pAzUbD4HAHtGugbHw84FzjYOtjgwfO886pW2XOYl\r
+       hMfo5A8GY+ZhQwjwO4NddeJB38KUtavuGnj+IR2sYchXGWkJzRsiLsVRkX6rtaSfrGIi\r
+       1EVA31Csxz+Ep1LwxoLtZ9pazq+ApYmcbLrzMnJhN/3lkpKSqewg0lyZCS2pg+kWdvsE\r
+       gSxw==\r
+X-Gm-Message-State:\r
+ ALoCoQkRBr7JpYNJUMcLSvsX9Y2Xikhx+ltCZj7YiTL/MsT7U8NJF0hs/FRXFdbSKVtFcqGG3BET\r
+X-Received: by 10.182.126.233 with SMTP id nb9mr2634330obb.46.1406853278482;\r
+       Thu, 31 Jul 2014 17:34:38 -0700 (PDT)\r
+Received: from localhost (216-177-191-101.block0.gvtc.com. [216.177.191.101])\r
+       by mx.google.com with ESMTPSA id\r
+       i19sm28899993oes.17.2014.07.31.17.34.37 for <notmuch@notmuchmail.org>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Thu, 31 Jul 2014 17:34:38 -0700 (PDT)\r
+From: MaDhAt2r <micah@dukefoo.com>\r
+X-Google-Original-From: MaDhAt2r <madhat2r@dukefoo.com>\r
+To: notmuch@notmuchmail.org \r
+Subject: Custom Tag Images\r
+User-Agent: Notmuch/0.18 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+Date: Thu, 31 Jul 2014 19:34:36 -0500\r
+Message-ID:\r
+ <878un9kpyb.fsf@ArchNemesis.i-did-not-set--mail-host-address--so-tickle-me>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-Mailman-Approved-At: Mon, 04 Aug 2014 10:40:50 -0700\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 01 Aug 2014 00:34:39 -0000\r
+\r
+\r
+Hello Everyone.\r
+\r
+ If this is not the place to address this issue, could you please\r
+ direct me to the proper forum.\r
+\r
+ Info: Using Emacs 24.3.1 on ArchLinux\r
+\r
+ I am interested in setting up custom image for some of the tags I use.\r
+\r
+ I have tried to use a svg file by setting it in the following ways:\r
+\r
+ (defun notmuch-tag-list-icon ()\r
+   "Return SVG data representing a list.\r
+ This can be used with `notmuch-tag-format-image-data'."\r
+\r
+ " <?xml version=\"1.0\" encoding=\"utf-8\"?>\r
+ <!-- Generated by IcoMoon.io -->\r
+ <!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r
+ <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
+ <g id=\"icomoon-ignore\">\r
+        <line stroke-width=\"1\" x1=\"\" y1=\"\" x2=\"\" y2=\"\" stroke=\"#449FDB\" opacity=\"\"></line>\r
+ </g>\r
+        <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
+ 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
+ 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
+ 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
+ </svg> ")\r
+\r
+ and setting it like I do the default images. e.g.\r
+ (setq notmuch-tag-formats '(\r
+                            ("flagged" (notmuch-tag-format-image-data tag (notmuch-tag-star-icon)))\r
+                            ("lists" (notmuch-tag-format-image-data tag (notmuch-tag-list-icon)))\r
+                            ))\r
+\r
+ I have also tried via the customize image setting and using the path to\r
+ the file.\r
+\r
+ Both ways produce nothing but a colored rectangle.\r
+\r
+ I have downloaded the file in question from http://IcoMoon.io\r
+\r
+ Am I missing something obvious here, or is this svg perhaps formatted\r
+ incorrectly for notmuch emacs?\r
+\r
+ Any pointers in the right direction are greatly appreciated.\r
+\r
+ Thanks.\r