git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] git-send-email.perl: improve detection of MIME encoded-words

From
Brandon Casey <drafnel@gmail.com>
Date
Jun 8, 2009, 00:31 UTC
Message-ID
<ee63ef30906071731j33c45b6dr3afcec2128023846@mail.gmail.com>
In-Reply-To
<1244420758-5604-1-git-send-email-drafnel@gmail.com>
On Sun, Jun 7, 2009 at 7:25 PM, Brandon Casey<drafnel@gmail.com> wrote:
> Here's a replacement patch which increases the range of excluded characters
> allowed as tokens so only ASCII characters are allowed (minus the other
> exclusions).
Here's the diff from the original patch:
diff --git a/git-send-email.perl b/git-send-email.perl
index e735815..8a1a40d 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -774,7 +774,7 @@ sub quote_rfc2047 {

 sub is_rfc2047_quoted {
        my $s = shift;
-       my $token = '[^][()<>@,;:"\/?.= \000-\037\177]+';
+       my $token = '[^][()<>@,;:"\/?.= \000-\037\177-\377]+';
        my $encoded_text = '[!->@-~]+';
        length($s) <= 75 &&
        $s =~ m/^(?:"[[:ascii:]]*"|=\?$token\?$token\?$encoded_text\?=)$/o;

-brandon
Previous: Brandon Casey
Message 5 of 5 in “git-send-email.perl: improve detection of MIME encoded-words”
  1. 1/2 git-send-email.perl: improve detection of MIME encoded-wordsBrandon Casey, Jun 7, 2009
  2. 2/2 send-email: use UTF-8 rather than utf-8 for consistencyBrandon Casey, Jun 7, 2009
  3. Brandon CaseyJun 7, 2009
  4. git-send-email.perl: improve detection of MIME encoded-wordsBrandon Casey, Jun 8, 2009
  5. Brandon CaseyJun 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.