--- /dev/null
+Return-Path: <jani@nikula.org>\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 A665A431FDB\r
+ for <notmuch@notmuchmail.org>; Mon, 3 Feb 2014 11:52:02 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 xmPHf5ebSj41 for <notmuch@notmuchmail.org>;\r
+ Mon, 3 Feb 2014 11:51:53 -0800 (PST)\r
+Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com\r
+ [74.125.83.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ EEDA8431FAF for <notmuch@notmuchmail.org>; Mon, 3 Feb 2014 11:51:52 -0800\r
+ (PST)\r
+Received: by mail-ee0-f54.google.com with SMTP id e53so3879834eek.13\r
+ for <notmuch@notmuchmail.org>; Mon, 03 Feb 2014 11:51:50 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=R2d6Exy44V7I5XykuC8hE9lVCh2dVcQBv6RNiglGfKs=;\r
+ b=Sr8MgCZ6TZ+5UUH8HL7ACXq5jsYOnPq9kjwzWl7hvxlOO6weV40sFhRYrFJg9z6ruf\r
+ ruNUE9IxeR/6nxcM4j2OT5Rzupa2Hau4/66eubOTyF+Z+w/DEOfcrSKKWDZSEedr9mTG\r
+ TDpRkP8HMAf4EI+jZ9+VWlfND/VUD5o3odCJBTXfOJy7eHvBHHckgxgIvLuw0d1y14Rq\r
+ hJpv6Lv3RDnrlTbILTS6DiDbdLVpoNr0GnV/H7AQtc3t7UbCdqWJJNQaUoYd75TlAs1W\r
+ B0MOWxpbbbft30NfS1AACGfjKuH7Fk3kSBUWXpyXnb2wENqen7RTh83hJ99uRNxAoSBg\r
+ huwg==\r
+X-Gm-Message-State:\r
+ ALoCoQmNUwyu+eYBMUvSXb2jFRGO9JsuRL8usp1l9/1pS/+fS5iwcJWvhWaW+BtXnvpx6zAMfO0A\r
+X-Received: by 10.15.33.193 with SMTP id c41mr5025281eev.79.1391457110251;\r
+ Mon, 03 Feb 2014 11:51:50 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+ [88.195.111.91])\r
+ by mx.google.com with ESMTPSA id 8sm73377120eef.1.2014.02.03.11.51.47\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Mon, 03 Feb 2014 11:51:49 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v3 0/6] lib: replace the message header parser with gmime\r
+Date: Mon, 3 Feb 2014 21:51:40 +0200\r
+Message-Id: <cover.1391456555.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.8.5.2\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: Mon, 03 Feb 2014 19:52:03 -0000\r
+\r
+This is v3 of id:cover.1385825425.git.jani@nikula.org\r
+\r
+As before, patches 1-4 are prep work that could be merged on their own,\r
+and patches 5-6 actually make the change.\r
+\r
+The only changes since v2 are cosmetic: rebase, changes in comments,\r
+function names, and commit messages.\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+Jani Nikula (6):\r
+ cli: sanitize tabs and newlines to spaces in notmuch search\r
+ cli: refactor reply from guessing\r
+ util: make sanitize string available in string util for reuse\r
+ cli: sanitize the received header before scanning for replies\r
+ lib: replace the header parser with gmime\r
+ lib: parse messages only once\r
+\r
+ lib/database.cc | 6 +-\r
+ lib/index.cc | 70 +--------\r
+ lib/message-file.c | 354 +++++++++++++++------------------------------\r
+ lib/message.cc | 6 +\r
+ lib/notmuch-private.h | 20 ++-\r
+ notmuch-reply.c | 206 ++++++++++++++++----------\r
+ notmuch-search.c | 17 ---\r
+ test/T090-search-output.sh | 2 +-\r
+ util/string-util.c | 22 +++\r
+ util/string-util.h | 7 +\r
+ 10 files changed, 313 insertions(+), 397 deletions(-)\r
+\r
+-- \r
+1.8.5.2\r
+\r