From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-5.3 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id DD0B020984 for ; Tue, 13 Sep 2016 23:46:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759537AbcIMXqV (ORCPT ); Tue, 13 Sep 2016 19:46:21 -0400 Received: from ikke.info ([178.21.113.177]:41208 "EHLO vps892.directvps.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbcIMXqV (ORCPT ); Tue, 13 Sep 2016 19:46:21 -0400 Received: by vps892.directvps.nl (Postfix, from userid 182) id 6E0304400BF; Wed, 14 Sep 2016 01:46:19 +0200 (CEST) Received: from io.ikke (unknown [10.8.0.30]) by vps892.directvps.nl (Postfix) with ESMTP id A46214400B7; Wed, 14 Sep 2016 01:46:17 +0200 (CEST) From: Kevin Daudt To: git@vger.kernel.org Cc: Junio C Hamano , Kevin Daudt Subject: [RFC 0/1] de-quote quoted-strings in mailinfo Date: Wed, 14 Sep 2016 01:46:11 +0200 Message-Id: <20160913234612.22806-1-me@ikke.info> X-Mailer: git-send-email 2.10.0.rc2 In-Reply-To: <20160913152622.2xtyn6mki6p6afsg@sigill.intra.peff.net> References: <20160913152622.2xtyn6mki6p6afsg@sigill.intra.peff.net> Reply-to: kevin@lists.ikke.info Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org This is my first 'big' C patch, so first an RFC. This patch implements RFC2822 dequoting of quoted-pairs in quoted strings, which was not done yet. This means removing the "\" as escape character from header fields, but only quoted strings, and comments (text between braces). According to the RFC, comments can also appear in square brackets in the e-mail domain, but that has not been implemented. In fact, just like other functions, it just looks at the whole header line. Please let me know what you think. Kevin Daudt (1): mailinfo: de-quote quoted-pair in header fields mailinfo.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ t/t5100-mailinfo.sh | 5 +++++ t/t5100/quoted-pair.expect | 5 +++++ t/t5100/quoted-pair.in | 9 +++++++++ t/t5100/quoted-pair.info | 5 +++++ 5 files changed, 70 insertions(+) create mode 100644 t/t5100/quoted-pair.expect create mode 100644 t/t5100/quoted-pair.in create mode 100644 t/t5100/quoted-pair.info -- 2.10.0.rc2