user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 4/9] t/mda.t: remove senseless use of Email::Filter
Date: Wed, 15 Jun 2016 00:37:37 +0000	[thread overview]
Message-ID: <20160615003742.22538-5-e@80x24.org> (raw)
In-Reply-To: <20160615003742.22538-1-e@80x24.org>

Totally unnecessary...
---
 t/mda.t | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/t/mda.t b/t/mda.t
index fdba967..66ba859 100644
--- a/t/mda.t
+++ b/t/mda.t
@@ -4,7 +4,6 @@ use strict;
 use warnings;
 use Test::More;
 use Email::MIME;
-use Email::Filter;
 use File::Temp qw/tempdir/;
 use Cwd;
 use IPC::Run qw(run);
@@ -54,8 +53,7 @@ local $ENV{GIT_COMMITTER_NAME} = eval {
 	open(my $fh, '<', $mbox) or die "failed to open mbox: $mbox\n";
 	my $str = eval { local $/; <$fh> };
 	close $fh;
-	my $msg = Email::Filter->new(data => $str);
-	$msg = Email::MIME->new($msg->simple->as_string);
+	my $msg = Email::MIME->new($str);
 
 	my $from = $msg->header('From');
 	my $author = PublicInbox::Address::from_name($from);

  parent reply	other threads:[~2016-06-15  0:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-15  0:37 [PATCH 0/9] big mda filter changes Eric Wong
2016-06-15  0:37 ` [PATCH 1/9] drop dependency on File::Path::Expand Eric Wong
2016-06-15  0:37 ` [PATCH 2/9] t/feed.t: make IPC::Run usage optional Eric Wong
2016-06-15  0:37 ` [PATCH 3/9] learn: remove IPC::Run dependency Eric Wong
2016-06-15  0:37 ` Eric Wong [this message]
2016-06-15  0:37 ` [PATCH 5/9] t/mda: use only Maildir for testing Eric Wong
2016-06-15  0:37 ` [PATCH 6/9] mda: precheck no longer depends on Email::Filter Eric Wong
2016-06-15  0:37 ` [PATCH 7/9] filter: begin work on a new filter API Eric Wong
2016-06-15  0:37 ` [PATCH 8/9] emergency: implement new emergency Maildir delivery Eric Wong
2016-06-15  0:37 ` [PATCH 9/9] mda: hook up new filter functionality Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160615003742.22538-5-e@80x24.org \
    --to=e@80x24.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).