Re: [PATCH 6/7] emacs: hello: add highlight newly arrived messages option
[notmuch-archives.git] / b2 / f77fcce4a1fb5ee5d6d4ea3822751c4ee42b08
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 BC1CA429E25\r
6         for <notmuch@notmuchmail.org>; Sun, 11 Dec 2011 14:56:49 -0800 (PST)\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 wa552FCZHCIa for <notmuch@notmuchmail.org>;\r
16         Sun, 11 Dec 2011 14:56:49 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-1.mit.edu (DMZ-MAILSEC-SCANNER-1.MIT.EDU\r
18         [18.9.25.12])\r
19         by olra.theworths.org (Postfix) with ESMTP id 17310431FB6\r
20         for <notmuch@notmuchmail.org>; Sun, 11 Dec 2011 14:56:49 -0800 (PST)\r
21 X-AuditID: 1209190c-b7f806d0000008d6-57-4ee535304b8c\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 7A.32.02262.03535EE4; Sun, 11 Dec 2011 17:56:48 -0500 (EST)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id pBBMulnI017573; \r
27         Sun, 11 Dec 2011 17:56:48 -0500\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pBBMujTg027853\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Sun, 11 Dec 2011 17:56:46 -0500 (EST)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1RZsLe-0004Gz-Il; Sun, 11 Dec 2011 17:58:22 -0500\r
37 Date: Sun, 11 Dec 2011 17:58:22 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Jani Nikula <jani@nikula.org>,\r
40         Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
41 Subject: Re: [PATCH] emacs: support "notmuch new" as a notmuch-poll-script\r
42 Message-ID: <20111211225822.GH2760@mit.edu>\r
43 References: <1323640100-18326-1-git-send-email-jani@nikula.org>\r
44         <87wra26a5u.fsf@gmail.com>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 Content-Disposition: inline\r
48 In-Reply-To: <87wra26a5u.fsf@gmail.com>\r
49 User-Agent: Mutt/1.5.21 (2010-09-15)\r
50 X-Brightmail-Tracker:\r
51  H4sIAAAAAAAAA+NgFuphleLIzCtJLcpLzFFi42IRYrdT1zUwfepncO+7pMXVrf3sFk3TnS2u\r
52         35zJ7MDssXPWXXaPW/dfs3s8W3WLOYA5issmJTUnsyy1SN8ugSujfe1ttoLl3BVzGj6zNjD+\r
53         5uhi5OSQEDCRePfyDSOELSZx4d56NhBbSGAfo8TnmfFdjFxA9gZGif49m1khnJNMEtuWPIVy\r
54         ljBKfDg8kx2khUVAVeLjhCvMIDabgIbEtv3LwcaKCERKtDQ+YAKxmQWkJb79bgazhQW8JDa+\r
55         7WYBsXkFtCXu75vHArE6RuL0gYlMEHFBiZMzn7BA9GpJ3Pj3EijOATZn+T+wDzgF1CV+TfoN\r
56         Vi4qoCIx5eQ2tgmMQrOQdM9C0j0LoXsBI/MqRtmU3Crd3MTMnOLUZN3i5MS8vNQiXUO93MwS\r
57         vdSU0k2MoEDnlOTZwfjmoNIhRgEORiUe3hPPHvsJsSaWFVfmHmKU5GBSEuWdZ/zUT4gvKT+l\r
58         MiOxOCO+qDQntfgQowQHs5IIr93dJ35CvCmJlVWpRfkwKWkOFiVx3updD/2EBNITS1KzU1ML\r
59         UotgsjIcHEoSvJNNgIYKFqWmp1akZeaUIKSZODhBhvMADW8DqeEtLkjMLc5Mh8ifYlSUEudd\r
60         AJIQAElklObB9cIS0StGcaBXhHn7QKp4gEkMrvsV0GAmoMFxKSBXF5ckIqSkGhgtjF5eKc5s\r
61         FHYWPSp3oedK3Gznw+6n//ZO+KJy73HP1bdxS7uVcnlPHjy1vkfjZ9i5K8eZb+gdm3hHROmX\r
62         ituPVk2Vp9axbJahzpbhpxl+cGs76bQ/i/iwQNxMmLXzeuIZXuNdOsmTftdfSTmaZ7Of7ReT\r
63         qSDv6vqPy1pTfLcFL+Tu3mVxuFSJpTgj0VCLuag4EQD+8TzZHwMAAA==\r
64 Cc: notmuch@notmuchmail.org\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.13\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69         <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Sun, 11 Dec 2011 22:56:49 -0000\r
78 \r
79 Quoth Dmitry Kurochkin on Dec 12 at  2:00 am:\r
80 > Hi Jani.\r
81\r
82 > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula <jani@nikula.org> wrote:\r
83 > > Let notmuch-poll-script be a function as well as a string. Make default\r
84 > > value nil instead of an empty string, but allow "" for backwards\r
85 > > compatibility. Add a notmuch poll function to call "notmuch new" using the\r
86 > > configured notmuch-command.\r
87 > > \r
88 > > This allows taking better advantage of the "notmuch new" hooks from emacs\r
89 > > without intermediate scripts.\r
90 > > \r
91\r
92 > I was just thinking about working on this myself :)\r
93\r
94 > I think a better solution would be to allow running a command with\r
95 > arguments.  Creating a elisp function just to run a command with some\r
96 > parameters feels wrong.  This way we would have to add another function\r
97 > each time we want to add another argument.\r
98 \r
99 This seems a little awkward to me, too, though perhaps it's the best\r
100 way.  Other approaches to consider include accepting a list for\r
101 notmuch-poll-script (e.g., ("notmuch" "new")) or leaving it as a\r
102 string but treating it as a shell command so "notmuch new" would Just\r
103 Work.  Personally, I think the latter is the most intuitive, but it\r
104 would be worth looking at how other customizable external commands are\r
105 done in Emacs.\r
106 \r
107 A function seems powerful, but also like overkill.  Can you give a use\r
108 case for a function that wouldn't be more easily solved by one of the\r
109 above approaches?\r