Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/SVN/Notify.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1471,10 +1471,10 @@ sub output_headers {
# Q-Encode the phrase part of recipient headers.
my $norm;
if (PERL58) {
require Email::Address;
require Email::Address::XS;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! No need to put Email::Address::XS into if(PERL58) block. Module Email::Address::XS is compatible and tested back to Perl version 5.6.0.

$norm = sub {
return join ', ' => map {
my ($addr) = Email::Address->parse($_);
my ($addr) = Email::Address::XS->parse($_);
if ($addr) {
if (my $phrase = $addr->phrase) {
$addr->phrase(Encode::encode( 'MIME-Q', $phrase ));
Expand Down