From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id ACC2F6DE00B8 for ; Sat, 10 Jun 2017 17:22:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.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=[AWL=0.010, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IfJ3XNrZqdVn for ; Sat, 10 Jun 2017 17:22:47 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 063FE6DE00AC for ; Sat, 10 Jun 2017 17:22:47 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1dJqbV-0000y2-MT; Sat, 10 Jun 2017 20:19:41 -0400 Received: (nullmailer pid 14613 invoked by uid 1000); Sun, 11 Jun 2017 00:22:44 -0000 From: David Bremner To: Ioan-Adrian Ratiu , notmuch@notmuchmail.org Subject: Re: [PATCH v2 08/11] notmuch-search: output total_filesize thread result In-Reply-To: <20170518222708.30032-9-adi@adirat.com> References: <20170518222708.30032-1-adi@adirat.com> <20170518222708.30032-9-adi@adirat.com> Date: Sat, 10 Jun 2017 21:22:44 -0300 Message-ID: <87fuf7cqzv.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Sun, 11 Jun 2017 00:22:47 -0000 Ioan-Adrian Ratiu writes: > This works for all the search output formats (sexp, json, text). > > if (format->is_text_printer) { > /* Special case for the text formatter */ > - printf ("thread:%s %12s [%d/%d] %s; %s (", > + printf ("thread:%s %lu %12s [%d/%d] %s; %s (", I'm not convinced about this change. I don't think that everyone finds it as important as you to know the total filesize in a thread. It also breaks many tests. One thing I noticed when running the tests is that in quite a few cases, it prints 0. So I suspect there is some bugs left.