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 37408431FBF for ; Sat, 19 Dec 2009 06:55:41 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 69E+0jzb3pdJ for ; Sat, 19 Dec 2009 06:55:40 -0800 (PST) Received: from pivot.cs.unb.ca (pivot.cs.unb.ca [131.202.240.57]) by olra.theworths.org (Postfix) with ESMTP id 9CD31431FAE for ; Sat, 19 Dec 2009 06:55:40 -0800 (PST) Received: from fctnnbsc30w-142167182194.pppoe-dynamic.high-speed.nb.bellaliant.net ([142.167.182.194] helo=localhost) by pivot.cs.unb.ca with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NM0iZ-0003aD-P7 for notmuch@notmuchmail.org; Sat, 19 Dec 2009 10:55:40 -0400 Received: from bremner by localhost with local (Exim 4.69) (envelope-from ) id 1NM0iU-0006eT-Bg for notmuch@notmuchmail.org; Sat, 19 Dec 2009 10:55:34 -0400 From: david@tethera.net To: notmuch@notmuchmail.org Date: Sat, 19 Dec 2009 10:55:21 -0400 Message-Id: <1261234524-25522-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 1.6.5.3 In-Reply-To: <87iqc4yyo8.fsf@yoom.home.cworth.org> References: <87iqc4yyo8.fsf@yoom.home.cworth.org> X-Sender-Verified: bremner@pivot.cs.unb.ca Subject: [notmuch] Prototype of --show option to control what is shown. X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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, 19 Dec 2009 14:55:41 -0000 Here is a set of 3 patches to implement (some) output control. [PATCH 1/3] rename option to select output format to --format from --output. [PATCH 2/3] notmuch-show.c: make calls to format functions conditional The first two are essentially suggestions for Scott. In particular the first is not needed at all for this little experiment. [PATCH 3/3] notmuch-show.c: prototype tabular output format, with output control The third implements a new "tabular" output format, and shows how it might be conditionally controlled. At the moment the only possibilities to output are message-id, match flag, and filename. This is mainly a matter of laziness. I didn't want to go too crazy before Scott's reached some final(ish) version.