--- /dev/null
+Return-Path: <sojkam1@fel.cvut.cz>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 42E18431FC2\r
+ for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 08:43:59 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id mC7DTz9viOyn for <notmuch@notmuchmail.org>;\r
+ Fri, 31 Oct 2014 08:43:52 -0700 (PDT)\r
+Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
+ by olra.theworths.org (Postfix) with ESMTP id DA0BA431FBC\r
+ for <notmuch@notmuchmail.org>; Fri, 31 Oct 2014 08:43:51 -0700 (PDT)\r
+Received: from localhost (unknown [192.168.200.7])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id AAB775CCF5E;\r
+ Fri, 31 Oct 2014 16:43:47 +0100 (CET)\r
+X-Virus-Scanned: IMAP STYX AMAVIS\r
+Received: from max.feld.cvut.cz ([192.168.200.1])\r
+ by localhost (styx.feld.cvut.cz [192.168.200.7]) (amavisd-new,\r
+ port 10044)\r
+ with ESMTP id MBXJJFPJIEew; Fri, 31 Oct 2014 16:43:41 +0100 (CET)\r
+Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
+ by max.feld.cvut.cz (Postfix) with ESMTP id 555725CD0AC;\r
+ Fri, 31 Oct 2014 16:43:41 +0100 (CET)\r
+Received: from wsh by steelpick.2x.cz with local (Exim 4.84)\r
+ (envelope-from <sojkam1@fel.cvut.cz>)\r
+ id 1XkEMR-0002I2-RY; Fri, 31 Oct 2014 16:43:35 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: Jesse Rosenthal <jrosenthal@jhu.edu>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v5 0/7] notmuch search --output=sender/recipients\r
+In-Reply-To: <874mukgu1t.fsf@jhu.edu>\r
+References: <1414713573-21461-1-git-send-email-sojkam1@fel.cvut.cz>\r
+ <874mukgu1t.fsf@jhu.edu>\r
+User-Agent: Notmuch/0.18.2+157~ga00d359 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Fri, 31 Oct 2014 16:43:35 +0100\r
+Message-ID: <87sii46y8o.fsf@steelpick.2x.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 31 Oct 2014 15:43:59 -0000\r
+\r
+On Fri, Oct 31 2014, Jesse Rosenthal wrote:\r
+> Dear Michal,\r
+>\r
+> Thanks for all this. The feature looks great! One issue: I'm getting\r
+> corrupt output when using `--output=3Dcount` with "fold" filters:\r
+>\r
+> ~~~\r
+> jkr@ladybug [11:01AM] ~ $ notmuch search --output=3Drecipients --output=\r
+=3Dcount "tag:notmuch and date:today.."=20\r
+> 2 Jani Nikula <jani@nikula.org>\r
+> 2 Michal Sojka <sojkam1@fel.cvut.cz>\r
+> 1 David Edmondson <dme@dme.org>\r
+> 9 notmuch@notmuchmail.org\r
+>\r
+> jkr@ladybug [11:01AM] ~ $ notmuch search --output=3Drecipients --output=\r
+=3Dcount --filter-by=3Daddrfold "tag:notmuch and date:today.."\r
+> 2 Michal Sojka <0Fam1@fel.cvutH>\r
+> 9=09\r
+> 1 David Edmondson <8dme.org>\r
+> 2 Jani Nikula <jani@nikula.org>\r
+>\r
+> jkr@ladybug [11:01AM] ~ $ notmuch search --output=3Drecipients --output=\r
+=3Dcount --filter-by=3Dnameaddr "tag:notmuch and date:today.."\r
+> 2 Jani Nikula <jani@nikula.org>\r
+> 2 Michal Sojka <sojkam1@fel.cvut.cz>\r
+> 1 David Edmondson <dme@dme.org>\r
+> 9 notmuch@notmuchmail.org\r
+>\r
+> jkr@ladybug [11:01AM] ~ $ notmuch search --output=3Drecipients --output=\r
+=3Dcount --filter-by=3Dnameaddrfold "tag:notmuch and date:today.."\r
+> 2 Jani Nikula <jani@nikula.org>\r
+> 2 Michal Sojka <0V=EF=BF=BD am1@fel.cvutH>\r
+> 1 David Edmondson <8=EF=BF=BD=EF=BF=BD dme.org>\r
+> 9\r
+> ~~~\r
+>\r
+> Not sure if this is expected behavior with the filtering mechanism in\r
+> its current state, but I wanted to call it to your attention if not.\r
+\r
+Definitely not. I'll look into that. Thanks.\r
+\r
+-Michal\r