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 7870F4196F0 for ; Thu, 1 Apr 2010 14:09:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] 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 FBnnqwEmKmve; Thu, 1 Apr 2010 14:09:58 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 579AE431FC1; Thu, 1 Apr 2010 14:09:58 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id E798E254390; Thu, 1 Apr 2010 14:09:57 -0700 (PDT) From: Carl Worth To: David Edmondson , notmuch In-Reply-To: <87oci344n4.fsf@ut.hh.sledj.net> References: <87oci344n4.fsf@ut.hh.sledj.net> Date: Thu, 01 Apr 2010 14:09:57 -0700 Message-ID: <87bpe2j2vu.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: [notmuch] pull request 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: Thu, 01 Apr 2010 21:09:59 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Thu, 01 Apr 2010 15:41:03 +0100, David Edmondson wrote: > Carl, a couple of patches that I'd like you to consider. They are the > first two on the `dme' branch of git://github.com/dme/notmuch.git. Thanks, David! I've got your branch fetched here and I plan to start playing with it. The feature-set of the branch sounds extremely compelling, so I'm looking forward to usability improvements from this. Thanks so much. > http://github.com/dme/notmuch/commit/f86254e4509ed02731aa3eaa8541df1f2d11= e400 > > notmuch-show: Add unix and pretty dates to the JSON output > >=20 > > Include a 'date_unix' and 'date_pretty' field in the JSON output for > > each message. 'date_pretty' can be used by a UI implementation, > > whereas 'date_unix' is useful when scripting. With "date_unix" it's easy enough to guess what the value is. But "date_pretty" is much more ambiguous. I assumed that this would be an RFC 822 date string, (but then found that it's the relative date that "notmuch show" is using currently). I think I'd rather see that named "date_relative", (or dropped with the expectation that callers can decide how to format dates on their own). > > A new 'part' subcommand allows the user to extract a single part from a > > MIME message. Usage: > >=20 > > notmuch part --part=3D This sounds like great functionality, and is something I had intended to do very early after starting notmuch.el but never got around to. > > The search terms should match only a single message > > (e.g. id:foo@bar.com). The part number specified refers to the part > > identifiers output by `notmuch show'. The content of the part is written > > the stdout with no formatting or identification marks. It is not JSON > > formatted. The above documentation isn't quite complete to me. Is MIME decoding handled by this or not? Also, the documentation says the search terms "should match" only one message, but what does the implementation do if more than one message is matched? It would be good to document that as well. More significantly, this level of documentation needs to be put into the "notmuch help" output (instead of the placeholder that's there in the current patch). It also needs to be added to the man page in notmuch.1. > The second of these (part) has been the topic of some > discussion. There's a suggestion that a 'cat' subcommand or > '--format=3Draw' option to the 'show' subcommand would be better. I'm not > particular preference - I just wanted the functionality to use in the > Emacs UI. One other approach that I imagined with the json output would be to simply include all of the MIME parts of all messages directly in the json-format output from "notmuch show". Does json have any particular way of encodign a binary blob? If not, should we just have one single encoding here? (Such as BASE64 within a json string?) Looking forward to more, =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLtQul6JDdNq8qSWgRAj41AKCNU3OKs4O/odYBmej3lYiqqU2HaQCfavcg JeFAuzQHZaPNcvsoeA3MT9g= =lxuv -----END PGP SIGNATURE----- --=-=-=--