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