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 6B6FB4196F0 for ; Thu, 1 Apr 2010 07:41:04 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[BAYES_20=-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 T0XNPOf-PxA9 for ; Thu, 1 Apr 2010 07:41:03 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by olra.theworths.org (Postfix) with ESMTP id 47176431FC1 for ; Thu, 1 Apr 2010 07:41:03 -0700 (PDT) Received: by wyj26 with SMTP id 26so314028wyj.26 for ; Thu, 01 Apr 2010 07:41:02 -0700 (PDT) Received: by 10.216.88.16 with SMTP id z16mr484212wee.126.1270132862211; Thu, 01 Apr 2010 07:41:02 -0700 (PDT) Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com [83.217.165.81]) by mx.google.com with ESMTPS id g9sm19088539gvc.8.2010.04.01.07.41.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 01 Apr 2010 07:41:01 -0700 (PDT) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id 3467C5941EC; Thu, 1 Apr 2010 15:41:03 +0100 (BST) To: notmuch From: David Edmondson Date: Thu, 01 Apr 2010 15:41:03 +0100 Message-ID: <87oci344n4.fsf@ut.hh.sledj.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [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 14:41:04 -0000 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. http://github.com/dme/notmuch/commit/f86254e4509ed02731aa3eaa8541df1f2d11e400 > notmuch-show: Add unix and pretty dates to the JSON output > > 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. http://github.com/dme/notmuch/commit/dfd99e186ffc6b759c4e09a990c43bb6b8743ef2 > notmuch: Add a 'part' subcommand > > A new 'part' subcommand allows the user to extract a single part from a > MIME message. Usage: > > notmuch part --part= > > 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 second of these (part) has been the topic of some discussion. There's a suggestion that a 'cat' subcommand or '--format=raw' option to the 'show' subcommand would be better. I'm not particular preference - I just wanted the functionality to use in the Emacs UI. (URLs included as the github frontend is quite nice for perusing the changes.) dme. -- David Edmondson, http://dme.org