From 0605c6dc6f0cb23a0dbd5f18149cd5b4120bfe46 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sat, 7 Jul 2012 09:21:07 +0300 Subject: [PATCH] Re: [PATCH] cli: add --headers_only option to notmuch-show.c --- cb/6f0fcb77f3e395103b43f8d801954ef2c2eaec | 116 ++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 cb/6f0fcb77f3e395103b43f8d801954ef2c2eaec diff --git a/cb/6f0fcb77f3e395103b43f8d801954ef2c2eaec b/cb/6f0fcb77f3e395103b43f8d801954ef2c2eaec new file mode 100644 index 000000000..c65461ecf --- /dev/null +++ b/cb/6f0fcb77f3e395103b43f8d801954ef2c2eaec @@ -0,0 +1,116 @@ +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 55D09431FAF + for ; Fri, 6 Jul 2012 23:21:09 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.699 +X-Spam-Level: +X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5 + tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +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 pQSw45g54Ezd for ; + Fri, 6 Jul 2012 23:21:08 -0700 (PDT) +Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com + [209.85.214.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id B0613431FAE + for ; Fri, 6 Jul 2012 23:21:08 -0700 (PDT) +Received: by obbup19 with SMTP id up19so12487034obb.26 + for ; Fri, 06 Jul 2012 23:21:07 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=mime-version:in-reply-to:references:date:message-id:subject:from:to + :cc:content-type:x-gm-message-state; + bh=elsZObXMyZgWc0KhzFu6/PZWOwLppwnM4GJOoJ/ntz0=; + b=d5dwCcQ0NztbP7Rc+VW/ZFOGpRKo+oYFhRd7nEytquv+f0cIvKsJat5pjhqSatlHwv + RT+2ByTlVylwEoV9fLVsyj9HGAes7vSiVVD+xpMr0au0l8kwHstLEesRaPz0YS9LGhrq + Jifsw4rOI+ZJ/+k81j0SzcswzvPAy+3E8sZXbvfytnC+jAOImkw7Hrj4ZAe9eZmPUD0D + Q+ldTKTrGeRoMaYVaiw5S4q/k3TEuqH9LedCIMR1UZgPUV/RFvWjbL9RnEa5Rn/CDWh9 + knq7AogEt+jYuUG3v9UgJZWGrofvQL4SYWWng/f9D3mSCgMvxig2GH9s8zBsjKu7nwSB + gDww== +MIME-Version: 1.0 +Received: by 10.182.85.8 with SMTP id d8mr1344949obz.70.1341642067077; Fri, 06 + Jul 2012 23:21:07 -0700 (PDT) +Received: by 10.76.10.102 with HTTP; Fri, 6 Jul 2012 23:21:07 -0700 (PDT) +Received: by 10.76.10.102 with HTTP; Fri, 6 Jul 2012 23:21:07 -0700 (PDT) +In-Reply-To: <20120707112232.GD2849@hili.localdomain> +References: <1341041595-5858-1-git-send-email-markwalters1009@gmail.com> + <20120707112232.GD2849@hili.localdomain> +Date: Sat, 7 Jul 2012 09:21:07 +0300 +Message-ID: + +Subject: Re: [PATCH] cli: add --headers_only option to notmuch-show.c +From: Jani Nikula +To: Peter Wang +Content-Type: multipart/alternative; boundary=f46d04479559d2e94b04c43762f0 +X-Gm-Message-State: + ALoCoQmmV2sCwgpSqXPSlNNDzYK2ovpiuJxlumS2NqYWPvgyNkUa9dfKnXtZcArOOJH1rnV+F+Ty +Cc: Notmuch Mail +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, 07 Jul 2012 06:21:09 -0000 + +--f46d04479559d2e94b04c43762f0 +Content-Type: text/plain; charset=UTF-8 + +On Jul 7, 2012 4:22 AM, "Peter Wang" wrote: +> +> On Sat, 30 Jun 2012 08:33:15 +0100, Mark Walters < +markwalters1009@gmail.com> wrote: +> > This option just outputs the headers of a message (i.e. it omits the +> > bodies). Currently this is only implemented for format=json. +> +> I think the option would be better named --output-body=yes|no, +> especially if we end up with --output-headers. + +Drive-by bikeshedding: --output={headers,body,all,whatnot} + +Would be cool if we could support multiple comma separated keywords. + +J. + +> +> Peter +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch + +--f46d04479559d2e94b04c43762f0 +Content-Type: text/html; charset=UTF-8 + +


+On Jul 7, 2012 4:22 AM, "Peter Wang" <novalazy@gmail.com> wrote:
+>
+> On Sat, 30 Jun 2012 08:33:15 +0100, Mark Walters <markwalters1009@gmail.com> wrote:
+> > This option just outputs the headers of a message (i.e. it omits the
+> > bodies). Currently this is only implemented for format=json.
+>
+> I think the option would be better named --output-body=yes|no,
+> especially if we end up with --output-headers.

+

Drive-by bikeshedding: --output={headers,body,all,whatnot}

+

Would be cool if we could support multiple comma separated keywords.

+

J.

+

>
+> Peter
+> _______________________________________________
+> notmuch mailing list
+> notmuch@notmuchmail.org
+> http://notmuchmail.org/mailman/listinfo/notmuch
+

+ +--f46d04479559d2e94b04c43762f0-- -- 2.26.2