about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-25 10:56:59 +0000
committerEric Wong <e@80x24.org>2016-06-25 10:56:59 +0000
commit13eda978e8937065575623d045f78592cbb6d022 (patch)
tree34dea0c86802f8808b18a2d70fafb5f23000c740 /t
parentdde6d1169d8f9d6aaede9730144d1f60be2134c8 (diff)
downloadpublic-inbox-13eda978e8937065575623d045f78592cbb6d022.tar.gz
Address::names is sufficient to handle what from_name did.
Diffstat (limited to 't')
-rw-r--r--t/mda.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/mda.t b/t/mda.t
index f3c5164b..32154bdc 100644
--- a/t/mda.t
+++ b/t/mda.t
@@ -57,7 +57,7 @@ local $ENV{GIT_COMMITTER_NAME} = eval {
         my $msg = Email::MIME->new($str);
 
         my $from = $msg->header('From');
-        my $author = PublicInbox::Address::from_name($from);
+        my ($author) = PublicInbox::Address::names($from);
         my ($email) = PublicInbox::Address::emails($from);
         my $date = $msg->header('Date');