Re: [ANNOUNCE] mutt with notmuch support
authorJan Pobrislo <ccx@webprojekty.cz>
Tue, 3 Jan 2012 23:31:30 +0000 (00:31 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:36 +0000 (09:41 -0800)
44/694bc8758a623eecfa8356eb19052201334fe4 [new file with mode: 0644]

diff --git a/44/694bc8758a623eecfa8356eb19052201334fe4 b/44/694bc8758a623eecfa8356eb19052201334fe4
new file mode 100644 (file)
index 0000000..ae286d6
--- /dev/null
@@ -0,0 +1,153 @@
+Return-Path: <ccx@webprojekty.cz>\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 BEA20429E42\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Jan 2012 15:34:19 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\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 32ylr5vV8Y2A for <notmuch@notmuchmail.org>;\r
+       Tue,  3 Jan 2012 15:34:18 -0800 (PST)\r
+X-Greylist: delayed 342 seconds by postgrey-1.32 at olra;\r
+       Tue, 03 Jan 2012 15:34:18 PST\r
+Received: from new.webprojekty.cz (new.webprojekty.cz [178.238.36.76])\r
+       by olra.theworths.org (Postfix) with ESMTP id 13328431FD0\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Jan 2012 15:34:18 -0800 (PST)\r
+Received: from eee.ccx (156.200.broadband11.iol.cz [90.178.200.156])\r
+       (Authenticated sender: ccx@webprojekty.cz)\r
+       by new.webprojekty.cz (Postfix) with ESMTPSA id BDD4C800405\r
+       for <notmuch@notmuchmail.org>; Wed,  4 Jan 2012 00:28:34 +0100 (CET)\r
+Date: Wed, 4 Jan 2012 00:31:30 +0100\r
+From: Jan Pobrislo <ccx@webprojekty.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: Re: [ANNOUNCE] mutt with notmuch support\r
+Message-ID: <20120104003130.409e979f@eee.ccx>\r
+In-Reply-To: <20120103123938.GA15106@x2.net.home>\r
+References: <20120103123938.GA15106@x2.net.home>\r
+X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.5; i686-pc-linux-gnu)\r
+Mime-Version: 1.0\r
+Content-Type: text/plain; charset=US-ASCII\r
+Content-Transfer-Encoding: 7bit\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: Tue, 03 Jan 2012 23:34:20 -0000\r
+\r
+On Tue, 3 Jan 2012 13:39:38 +0100\r
+Karel Zak <kzak@redhat.com> wrote:\r
+\r
+> \r
+> This is not another curses front-end for notmuch, this is mutt :-)\r
+> \r
+> I have forked mutt to seriously integrate notmuch to this excellent\r
+> e-mail client. I don't want to use symlinks or any other hacks to\r
+> emulate virtual folders. My wish is mutt linked with libnotmuch.\r
+\r
+Good to hear!\r
+\r
+First, I'll shamelessly plug in my set of scripts that do the dirty work by\r
+using symlinked maildirs to interact with any maildir capable mail reader.\r
+It's mainly intended to be interface from shell, calling out to mutt or any\r
+mail reader only when necessary, so it's somewhat reverse paradigm to yours.\r
+\r
+view @ http://webprojekty.cz/ccx/loggerhead/zmuch/files\r
+bzr branch http://webprojekty.cz/ccx/bzr/zmuch\r
+\r
+Sadly I had to take hiatus mid-rewrite of it, but several interesting points\r
+came up when I was talking about it with cworth and others.\r
+\r
+We agreed that we wanted to standardize several features currently present in\r
+emacs UI, so we can share configuration among several implementations. Most\r
+important of these were:\r
+\r
+saved searches\r
+--------------\r
+\r
+This is the feature I started writing my scripts for. I wanted to refer by a\r
+simple shorthand to complex queries. I know emacs UI has some notion of\r
+remembered queries, but I haven't really bothered trying it out. I assume you\r
+will want to represent these as separate mailboxes, maybe shown using the\r
+sidebar patch, so one has quick overview what's new in which ML.\r
+\r
+The way I do this is that command:\r
+\r
+$ zmuch search :foss and not :notmuch\r
+\r
+will expand to:\r
+\r
+$ notmuch search ( to:lists.xmms.se or ( to:cairo-announce@cairographics.org\r
+    or to:cairo@cairographics.org ) or ( to:notmuch@notmuchmail.org or\r
+       to:notmuch-request@notmuchmail.org ) ) and not (\r
+       to:notmuch@notmuchmail.org or to:notmuch-request@notmuchmail.org )\r
+\r
+Which would be bit too much to type by hand, even for so few lists.\r
+This would be using .notmuch-config with something like this:\r
+\r
+[zmuch_searches]\r
+xmms2=to:lists.xmms.se\r
+cairo=to:cairo-announce@cairographics.org or to:cairo@cairographics.org\r
+foss=:xmms2 or :cairo or :notmuch\r
+\r
+Subset of this issue is the question: How to display overview of such saved\r
+queries in a sensible manner? Mutt probably can't go beyond unread/total\r
+number of messages for each query and that's actually what I have currently\r
+implemented. Given the config:\r
+\r
+[interesting]\r
+query=is:unread and not ( is:spam or is:mute )\r
+\r
+[zmuch_show]\r
+selected=twisted;notmuch;gentoo-cs;cajovna;system;inbox\r
+\r
+it would show number of interesting/total messages for each of the listed\r
+saved query. Much nicer generalisation was then discussed on IRC, where you\r
+could use regular saved search instead of separate [interesting] entry,\r
+allowing you to have several such queries, eg. for displaying\r
+unread/flagged/muted/total or anything your heart desires.\r
+\r
+way to call notmuch\r
+-------------------\r
+\r
+This might be feature you'll be probably missing due to using libnotmuch\r
+directly instead of calling out executable as emacs UI does, but I find it\r
+really useful to be able to layer functionality unix-style. Not only you can\r
+run remote notmuch via ssh, but also my saved search implementation does this\r
+by expanding arguments passed to the notmuch executable and as such is usable\r
+from any UI that has configurable executable to call instead of "notmuch".\r
+\r
+colors\r
+------\r
+\r
+Again dunno how much this applies to mutt, as it has it's own coloring\r
+paradigm, but I find it neat to be able to do something like this globally:\r
+\r
+[tag_colors]\r
+flagged=%F{red}\r
+mute=%B%F{black}\r
+spam=%F{magenta}\r
+unread=%F{cyan}\r
+replied=%F{yellow}\r
+sent=%F{green}\r
+attachment=%B\r
+\r
+This is syntax that zsh uses for it's print/prompt formatting and is obviously\r
+ANSI VT specific (%B is for bold/standout). GUI lovers will probably want #RGB\r
+scheme too.\r
+\r
+\r
+HTH bring up some good ideas and discussion.\r