Re: [PATCH] Quick hack to avoid double qp encoding
- From
- Juergen Ruehle <j.ruehle@bmiag.de>
- Date
- Jan 10, 2007, 20:37 UTC
- Message-ID
- <17829.20111.652000.250228@lapjr.intranet.kiel.bmiag.de>
- In-Reply-To
- <11684596371612-git-send-email-j.ruehle@bmiag.de>
Juergen Ruehle writes:
> From: Jürgen_Rühle <j-r@online.de>
^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@online.de>
> ---
> 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