MESSAGE
DATE | 2015-11-05 |
FROM | Ruben Safir
|
SUBJECT | Subject: [Hangout-NYLXS] Fwd: Re: [Mailman-Users] 64 bit encoding
|
-------- Forwarded Message -------- From: 59 2015 <> X-Account-Key: account8 X-UIDL: UID11800-1258411666 X-Mozilla-Status: 1011 X-Mozilla-Status2: 00000000 X-Mozilla-Keys: >From mailman-users-bounces+mrbrklyn=panix.com-at-python.org Wed Nov 4 19: 56:29 2015 Lines: 41 Return-Path: X-Original-To: mrbrklyn-at-panix.com Delivered-To: mrbrklyn-at-panix.com Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mailbackend.panix.com (Postfix) with ESMTP id B78AC172F5 for ; Wed, 4 Nov 2015 19:56:29 -0500 (EST) Received: from mail.python.org (mail.python.org [188.166.95.178]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail1.panix.com (Postfix) with ESMTPS id 8A66E17D74 for ; Wed, 4 Nov 2015 19:56:29 -0500 (EST) Received: from mail1.ams1.psf.io (mail1.ams1.psf.io [127.0.0.1]) by mail.python.org (Postfix) with ESMTP id 3nrmd85wRzzFrWj for ; Wed, 4 Nov 2015 19:56:28 -0500 (EST) X-Original-To: mailman-users-at-python.org Delivered-To: mailman-users-at-mail.python.org Received: from mail1.ams1.psf.io (mail1.ams1.psf.io [127.0.0.1]) by mail.python.org (Postfix) with ESMTP id 3nrmcM2tPPzFrTN for ; Wed, 4 Nov 2015 19:55:47 -0500 (EST) X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.03; 'none,': 0.05; 'from:addr:mark': 0.09; 'subject:Users': 0.09; 'throw': 0.09; 'output': 0.13; 'encoding': 0.15; 'argument.': 0.16; 'from:addr:msapiro.net': 0.16; 'from:name:mark sapiro': 0.16; 'headers,': 0.16; 'headers.': 0.16; 'message- id:-at-msapiro.net': 0.16; 'received:72.52.113': 0.16; 'received:72.52.113.16': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'received:sbh16.songbird.com': 0.16; 'received:songbird.com': 0.16; 'set,': 0.16; 'subject:bit': 0.16; 'turnbull': 0.16; 'wrote:': 0.16; 'francisco': 0.16; 'sapiro': 0.18; 'subject:] ': 0.19; 'subject:Mailman': 0.20; 'changes': 0.20; 'bay': 0.22; 'arguments': 0.22; 'gamblers,': 0.22; 'produces': 0.22; 'stephen': 0.22; 'replacing': 0.23; 'skip:+ 30': 0.23; 'patch': 0.24; 'header:In-Reply-To:1': 0.24; 'header': 0.24; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'sense': 0.26; 'skip:e 30': 0.27; 'character': 0.29; 'work.': 0.30; 'highway': 0.33; 'i.e.': 0.35; 'but': 0.36; 'alone': 0.36; 'pm,': 0.36; 'received:10': 0.37; 'test': 0.39; 'does': 0.39; "didn't": 0.39; 'subject:-': 0.39; 'skip:e 20': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'your': 0.60; 'body': 0.61; 'default': 0.61; 'charset:windows-1252': 0.62; 'course': 0.62; '8bit': 0.91 Received: from mail1.ams1.psf.io (HELO mail.python.org) (127.0.0.1) by mail1.ams1.psf.io with SMTP; 04 Nov 2015 19:55:47 -0500 Received: from sbh16.songbird.com (sbh16.songbird.com [72.52.113.16]) by mail.python.org (Postfix) with ESMTP for ; Wed, 4 Nov 2015 19:55:47 -0500 (EST) Received: from [10.211.115.100] (45-24-217-241.lightspeed.sntcca.sbcglobal.net [45.24.217.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mark) by sbh16.songbird.com (Postfix) with ESMTPSA id 67A0611E1A26 for ; Wed, 4 Nov 2015 16:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=msapiro.net; s=default; t=1446684939; bh=TzIs6CieKA1lU/M5poxBMGV7nFtUdu8S1ArAmepvsbg=; h=Subject:To:References:From:Date:In-Reply-To; b=SIhC66tzt1CYdnkvgvQYIJ1KLHJ6vcKLVuMYCeRnEdfYDb8Khz6W0MoJhdO2aSSk0 s4W6JIzEjV1yi0/pjgkOTp0sVe8An85eKiVfzGZY/wg4No6A4g3dN67/KYbSWKu6e/ mLnBcuUU3sL7TOl+CwWbnvodAKayCCWSk7zQrW5k= To: mailman-users-at-python.org References: <56397081.7030408-at-panix.com> <563A3BEC.9090700-at-msapiro.net> <22074.41582.78231.830496-at-turnbull.sk.tsukuba.ac.jp> From: Mark Sapiro Message-ID: <563AA90B.7090307-at-msapiro.net> Date: Wed, 4 Nov 2015 16:55:39 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <22074.41582.78231.830496-at-turnbull.sk.tsukuba.ac.jp> X-GPC-MailScanner-ID: 67A0611E1A26.A78A4 X-GPC-MailScanner: Found to be clean X-GPC-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.86, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -0.75, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, X_GPC_SASL -0.01) X-GPC-MailScanner-From: mark-at-msapiro.net X-Spam-Status: No Subject: Re: [Mailman-Users] 64 bit encoding X-BeenThere: mailman-users-at-python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: Mailman mailing list management users List-Unsubscribe: ,
List-Archive: List-Post: List-Help: List-Subscribe: ,
Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: mailman-users-bounces+mrbrklyn=panix.com-at-python.org Sender: "Mailman-Users"
On 11/04/2015 04:27 PM, Stephen J. Turnbull wrote: > Mark Sapiro writes: > > > +email.Charset.add_charset('utf-8', > > + email.Charset.SHORTEST, > > + email.Charset.QP, > > + 'utf-8') > > I don't know if this actually is available, let alone whether it would > work (might affect headers, too, and of course elderly recipient > systems might throw a tantrum), but how about Content-Transfer-Encoding > of 8bit?
I did test it and it does work. I didn't think of it at the time, but replacing the body encoding (email.Charset.QP in the above patch) with None, i.e.
email.Charset.add_charset('utf-8', email.Charset.SHORTEST, None, 'utf-8')
also works and produces a message with
Content-Transfer-Encoding: 8bit
It doesn't affect headers. The arguments are character set, header encoding, body encoding, output codec. The only thing the add_charset in the patch changes from the default is the body encoding argument.
-- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users-at-python.org https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/mrbrklyn%40panix.com
_______________________________________________ hangout mailing list hangout-at-nylxs.com http://www.nylxs.com/
|
|