From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C1D1C4196F2 for ; Sat, 24 Apr 2010 04:45:16 -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 yiOSGJTUpZ0k for ; Sat, 24 Apr 2010 04:45:15 -0700 (PDT) Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57]) by olra.theworths.org (Postfix) with ESMTP id C023D431FC1 for ; Sat, 24 Apr 2010 04:45:15 -0700 (PDT) Received: from fctnnbsc30w-142167190087.pppoe-dynamic.high-speed.nb.bellaliant.net ([142.167.190.87] helo=rocinante.cs.unb.ca) by pivot.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1O5dnO-00030e-Lr for notmuch@notmuchmail.org; Sat, 24 Apr 2010 08:45:15 -0300 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.71) (envelope-from ) id 1O5dms-0005QR-9e for notmuch@notmuchmail.org; Sat, 24 Apr 2010 08:44:42 -0300 From: david@tethera.net To: notmuch@notmuchmail.org Subject: Initial support for selecting what is output Date: Sat, 24 Apr 2010 08:44:35 -0300 Message-Id: <1272109478-20686-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 1.7.0 X-Sender-Verified: bremner@pivot.cs.unb.ca 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: Sat, 24 Apr 2010 11:45:16 -0000 These are some preliminary patches to add a --output argument to notmuch show. notmuch show --format=json --output=from,subject ${query} or notmuch show --format=json --output=to,body ${query} I'd like to implement a bit finer control (to get message-id's only is not possible right now), and it needs documentation and a test, but I thought I'd toss this out there to see what people think.