From patchwork Thu Mar 23 21:07:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 9642017 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 225B0602D6 for ; Thu, 23 Mar 2017 21:07:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12B2228460 for ; Thu, 23 Mar 2017 21:07:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05EB02847F; Thu, 23 Mar 2017 21:07:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8BDB428460 for ; Thu, 23 Mar 2017 21:07:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 148D66EAB9; Thu, 23 Mar 2017 21:07:37 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-qt0-x22c.google.com (mail-qt0-x22c.google.com [IPv6:2607:f8b0:400d:c0d::22c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 686156EAB9 for ; Thu, 23 Mar 2017 21:07:35 +0000 (UTC) Received: by mail-qt0-x22c.google.com with SMTP id n21so186849433qta.1 for ; Thu, 23 Mar 2017 14:07:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=E/gsekeycHYxySA0EmF+DLDZSl7osCAHXs0zE1/0p5Y=; b=WclQduIJULGqh6Kj4Ay8iRh4R4ty0nrgKtOU3UA/g75yPkjR/823nKlyYXTgdVMVH/ Gfp32jvDRE2WN21UHLBc79n2i2fyWzlfLsoQltOuE1OSuun8JVmL3nWjLJ3AEivOvTQD 5/j4QqbIcvMuBhE/8AZLAdMY2i/YFvzMO2HCk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=E/gsekeycHYxySA0EmF+DLDZSl7osCAHXs0zE1/0p5Y=; b=uUJvx4mvOc51lH0gbWlKpaHumikdGvkHAmKblD7h+43brTbTvpIvpKyyrM51uOwjaU uNnQSNAeDXEaT8YV3XJYtPWU2/Tftwn8pfy9kvcykkptJ4eOedxBInlbVWkognf81CJh ZB3t5KrAardmceruKNkPySpy1FC8w0SC7Wu4BeaD5Tr8jtwGvw6myPAbYxe35Z+FqsVe XuP/NAAEtiKz5tZ1Y7ldjm9eo94o+9c5HdKVNDJWRMP+JD3kai05wgDVHlF0CdWdmB0i fqkYrx/JNL/74xShgyUc7o88WM7kAhtj574abI9cgAhTqQaZZSo6SN7V9CzvQfl6jPik JPTQ== X-Gm-Message-State: AFeK/H1/MleySUMwnXvuU2U42qOv65LfLegxNpOziPC4TFe2jbx1RVJqobpH0NrWoPOJJgnI X-Received: by 10.200.51.19 with SMTP id t19mr4458766qta.242.1490303254354; Thu, 23 Mar 2017 14:07:34 -0700 (PDT) Received: from boxwood.roam.corp.google.com (cpe-75-189-128-87.nc.res.rr.com. [75.189.128.87]) by smtp.gmail.com with ESMTPSA id d4sm145753qkf.30.2017.03.23.14.07.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Mar 2017 14:07:33 -0700 (PDT) From: Sean Paul To: intel-gfx@lists.freedesktop.org, ville.syrjala@linux.intel.com Date: Thu, 23 Mar 2017 17:07:27 -0400 Message-Id: <20170323210731.38313-1-seanpaul@chromium.org> X-Mailer: git-send-email 2.12.1.500.gab5fba24ee-goog Subject: [Intel-gfx] [PATCH dim 1/2] dim: Add support for multiple messages in extract-tags X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Make extract-tags process tags from all messages in the supplied mbox. This allows the user to tag multiple replies and extract all tags at once. Signed-off-by: Sean Paul --- dim | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dim b/dim index 989674a..43ea794 100755 --- a/dim +++ b/dim @@ -342,25 +342,27 @@ if message_id is not None: EOF } -message_print_body () +mbox_cat_messages () { python2 < $file - tags=$(message_print_body "$file" | grep -ai '^[^>]*[A-Za-z-]\+: [^ ]') + tags=$(mbox_cat_messages "$file" | grep -ai '^[^>]*[A-Za-z-]\+: [^ ]') rm -f $file