Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: [PATCH] Quick hack to avoid double qp encoding

From: Juergen Ruehle <hidden>
Date: 2016-06-15 22:42:48

Possibly related (same subject, not in this thread)

Juergen Ruehle writes:
 > From: Jürgen_Rühle [off-list ref]
                ^

Ok, i should have also reverted the ' ' to '_' conversion, but it
seems that send-email is to blame, because it simply copies the
(possibly) QP encoded author address into the body of a (possibly) not
QP encoded message.

 > Signed-off-by: Jürgen Rühle [off-list ref]
 > ---
 >  This is just a hack since I know next to nothing about perl.
 > 
 >  git-send-email.perl |    1 +
 >  1 files changed, 1 insertions(+), 0 deletions(-)
 > 
 > diff --git a/git-send-email.perl b/git-send-email.perl
 > index ba39d39..a4a22d3 100755
 > --- a/git-send-email.perl
 > +++ b/git-send-email.perl
 > @@ -555,6 +555,7 @@ foreach my $t (@files) {
 >  	}
 >  	close F;
 >  	if (defined $author_not_sender) {
 > +		$author_not_sender =~ s/=\?utf-8\?q\?([^?]*)\?=/my $bla = $1; $bla =~ s|=([0-9a-fA-F]{2})|sprintf '%c', hex($1)|eg; $bla/eg;

+		$author_not_sender =~ s/=\?utf-8\?q\?([^?]*)\?=/my $bla = $1; $bla =~ s|_| |g; $bla =~ s|=([0-9a-fA-F]{2})|sprintf '%c', hex($1)|eg; $bla/eg;

 >  		$message = "From: $author_not_sender\n\n$message";
 >  	}
 >  
 > -- 
 > 1.5.0.rc0.g525e
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help