Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9A912431FBC for ; Mon, 1 Feb 2010 12:29:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.061 X-Spam-Level: X-Spam-Status: No, score=-0.061 tagged_above=-999 required=5 tests=[AWL=-0.062, BAYES_50=0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WM1raQdI9dgG for ; Mon, 1 Feb 2010 12:29:57 -0800 (PST) Received: from webmail4.g.dreamhost.com (caiajhbihbdd.dreamhost.com [208.97.187.133]) by olra.theworths.org (Postfix) with ESMTP id A0E92431FAE for ; Mon, 1 Feb 2010 12:29:57 -0800 (PST) Received: from webmail.sspaeth.de (localhost [127.0.0.1]) by webmail4.g.dreamhost.com (Postfix) with ESMTP id 7380C30273 for ; Mon, 1 Feb 2010 12:29:44 -0800 (PST) Received: from 195.190.178.84 (proxying for 195.190.178.84) (SquirrelMail authenticated user sebastian@sspaeth.de) by webmail.sspaeth.de with HTTP; Mon, 1 Feb 2010 12:29:44 -0800 Message-ID: In-Reply-To: <87eil4ygar.fsf@servo.finestructure.net> References: <87eil4ygar.fsf@servo.finestructure.net> Date: Mon, 1 Feb 2010 12:29:44 -0800 From: sebastian@sspaeth.de To: "Notmuch Mail" User-Agent: SquirrelMail/1.4.19 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [notmuch] Request for high-priority improvements to notmuch X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 20:29:58 -0000 Let me second those thoughts. I'll even put forward 2 more pet suggestions :). 1) > Ability to apply tags based on folder paths in "notmuch new" This will let me sync tags with notmuchsync much more easily than going through all mails and detecting their IMAP path from the filename. Support for searching/tagging mails in certain folders would be really nice. I would appreciate but do not urgently need a [tags] section in notmuch proper, as I'll extend notmuchsync to do that for me. 2) > JSON output for "notmuch search/show" with ability to filter output fields > "search" --> "search --output=thread_id,date,number,author,subject,tags" > "show" --> "search > --output=message_id,tags,path,header,body,attachments" YES PLEASE :-). notmuch seems designed to work in an ecosystem of surrounding scripts, feeding data in and out. But we are all currently limited to regexes for that. And heck, I hard a hard time understanding why all hell broke out until I found that i had added a tag containing parentheses which made my regex fail. :-). XML, JSON, any structured output would be nice. And as for filtering: YES, PLEASE :-). notmuchsync and many other 3rd party apps would love that. As father of notmuchsync, I can tell you my little script hickups very badly when slurping in 200k mails (including text bodies) just to find out the maildir tags of those mails. > * Proper maildir sync ("search --output=message_id,tags,path" ...) [snip many sensible proposals] Sebastian P.S. as a bonus: My very ugly way of getting a distribution of existing tags (extra points for beautified versions): notmuch dump|sed -e 's/^.*(//'|sed -e 's/)$//'|sed 's/ /\n/g'|sort|uniq -c|sort -r