From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C7A671F463 for ; Fri, 29 Nov 2019 12:25:08 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/4] drop Date::Parse dependency Date: Fri, 29 Nov 2019 12:25:04 +0000 Message-Id: <20191129122508.7708-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I started working on the async batch interface for git many months ago, but didn't have a good use case for it. The comparison test in msgtime_cmp gives me an excuse to start using it :) Spam email I don't care about, but there's some differences for folks that send valid mails: The new code gets tripped up by 4 digit dates from non-sensical times (emails from 1904, really?), so maybe some adjustment is necessary. There's also some bogus dates from the year 71685, so that's a case where falling back on the Received: header is a good choice. Maybe some more odd caes when checks are done running... Eric Wong (4): git: async batch interface add msgtime_cmp maintainer test msgtime: drop Date::Parse for RFC2822 Date::Parse is now optional INSTALL | 9 ++- MANIFEST | 2 + Makefile.PL | 1 - TODO | 4 - ci/deps.perl | 2 +- lib/PublicInbox/Admin.pm | 2 +- lib/PublicInbox/Git.pm | 94 +++++++++++++++++----- lib/PublicInbox/MDA.pm | 5 +- lib/PublicInbox/MsgTime.pm | 118 +++++++++++++++++++++++---- t/msgtime.t | 7 ++ xt/git_async_cmp.t | 61 ++++++++++++++ xt/msgtime_cmp.t | 161 +++++++++++++++++++++++++++++++++++++ 12 files changed, 415 insertions(+), 51 deletions(-) create mode 100644 xt/git_async_cmp.t create mode 100644 xt/msgtime_cmp.t