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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Juergen Ruehle writes:
 > From: Jürgen_Rühle <j-r@xxxxxxxxx>
                ^

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 <j-r@xxxxxxxxx>
 > ---
 >  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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]