diff options
author | Eric Wong <e@80x24.org> | 2016-04-30 02:02:53 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-04-30 02:02:53 +0000 |
commit | 777eadff478fde1aca20148e0c5dd85567a8aa15 (patch) | |
tree | 0d0b0fdba28f962f8313def96e77b59c9adf48c2 /lib | |
parent | 1acd8fdc49c270335257251ea3f1fd3798f09b8f (diff) | |
download | public-inbox-777eadff478fde1aca20148e0c5dd85567a8aa15.tar.gz |
Noticed when using a long URL in the subject.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/SearchMsg.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/PublicInbox/SearchMsg.pm b/lib/PublicInbox/SearchMsg.pm index a0899159..1244aeea 100644 --- a/lib/PublicInbox/SearchMsg.pm +++ b/lib/PublicInbox/SearchMsg.pm @@ -148,12 +148,9 @@ sub ensure_metadata { sub mini_mime { my ($self) = @_; $self->ensure_metadata; - my @hs = ( + my @h = ( 'Subject' => $self->subject, 'X-PI-From' => $self->from_name, - ); - - my @h = ( # prevent Email::Simple::Creator from running, # this header is useless for threading as we use X-PI-TS # for sorting and display: @@ -164,7 +161,7 @@ sub mini_mime { if (my $refs = $self->{references}) { push @h, References => $refs; } - my $mime = Email::MIME->create(header_str => \@hs, header => \@h); + my $mime = Email::MIME->create(header => \@h); my $h = $mime->header_obj; # set these headers manually since Encode::encode('MIME-Q', ...) |