Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #350: paradigm shift...without a clutch


comp / comp.lang.python / Re: Printing UTF-8 mail to terminal

SubjectAuthor
o Re: Printing UTF-8 mail to terminalLeft Right

1
Subject: Re: Printing UTF-8 mail to terminal
From: Left Right
Newsgroups: comp.lang.python
Date: Fri, 1 Nov 2024 22:57 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!feeder2.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: olegsivokon@gmail.com (Left Right)
Newsgroups: comp.lang.python
Subject: Re: Printing UTF-8 mail to terminal
Date: Fri, 1 Nov 2024 23:57:00 +0100
Lines: 16
Message-ID: <mailman.72.1730501834.4695.python-list@python.org>
References: <CAJQBtgmwNbjYNr-LWYCia-9+CoRzaLj22YxzyP_EhwSspRD8_g@mail.gmail.com>
<5D77331F-91F4-4000-BF82-DB7A8EA7CD4F@barrys-emacs.org>
<CAJQBtgmQbJf8CDLx3Ty0DkqAU7LDqC_5zO87Lrz0yOOuOdGAsQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de xmkq/LotVR2uk5WD9GUKDAOkzZqu/DD2Y+1OGOEO+haw==
Cancel-Lock: sha1:fBKk0rfmDe2n2NEM6QyKURGCSRA= sha256:wljCy6ER2wZYrXHNzQjvku+KOWlmioelpDcMIQ7Z7SQ=
Return-Path: <olegsivokon@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=C0cnKj+j;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.029
X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'looks': 0.02; 'windows,':
0.05; 'cc:addr:python-list': 0.09; 'linux': 0.09; 'terminal':
0.09; 'cc:no real name:2**0': 0.14; 'does,': 0.16; 'extracting':
0.16; 'indeed': 0.16; 'received:mail-qv1-xf29.google.com': 0.16;
'testing.': 0.16; 'tmux': 0.16; 'windows.': 0.16; 'problem': 0.16;
'cc:addr:python.org': 0.20; 'cc:2**1': 0.23; 'run': 0.23;
'actual': 0.25; 'message-id:@mail.gmail.com': 0.31; 'but': 0.32;
'there': 0.33; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'windows': 0.34;
'from:addr:gmail.com': 0.34; 'this.': 0.35; 'also,': 0.36;
'using': 0.37; 'could': 0.37; 'way': 0.38; 'use': 0.39;
"couldn't": 0.40; 'years.': 0.40; 'want': 0.40; 'best': 0.61;
'email': 0.63; 'wife': 0.69; 'took': 0.69; 'interesting': 0.71;
'implemented': 0.76; 'url-ip:23.207.107/24': 0.84; 'url-
ip:23.207/16': 0.84; 'articles': 0.86; 'subject:UTF': 0.91;
'subject:mail': 0.95
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1730501831; x=1731106631; darn=python.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=+lMoMGcCw3sXllhRV+iCUeZlxy9m5vPnJfI0pYzj8BM=;
b=C0cnKj+jHSuV5StFdP9eMalQ5QURg4av/gUFZPWfStEgyEkUGM4vD7Gkg+YuH75K1F
QsoZHByw3qmWTOG+L0WKThrrJyzUvJhhjlose/3QkIUHDfq02nFV8THztgOTC9YMGeIF
olNQF0IJdkhvVrlFOVlOqp5Pwo395nUThpfm+8FwVJ0qfSRbgg8jChgHPFtLD5EQp6lY
XhXZkeK8YxioT3oMCbylKub74ozRLbn8BoSLG2Wh3SRVbRoJxxI8fE3e2g6NUDG8TM7P
vBzUEOmCXTUjG1Pbh4xAljAYMlANhJvEpes6d9gmJCtiPHJXlIBFvPzWHwWGeFQVnbM9
4EhA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1730501831; x=1731106631;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=+lMoMGcCw3sXllhRV+iCUeZlxy9m5vPnJfI0pYzj8BM=;
b=ORjZTRR7ihm01tEPC+nGwJwPWodgyEETbqCtTBfpFjL2cu3i0EnVx4yn2TAlwZT4Eq
IAKsQFPGjFFpJZtTce1xipNMPCyPuW/5JXxSUBD6BnOnkc50ci6+nAEJmT+dvv7etlwI
T9GchJ2P4FAy9eLFfLgwjUpZrn8nOE9xYhmL5Mf5d+J3VH1Bw5WWVKR0wMQdUh5Y29vS
a8ATJOd+IG6odPCw7fBVqcCsZiOEm+nh/ZpbAhkgDQI4yFcu0vur57cf1W+Gi5PD8KCU
anblnvG/qapjbv7gDhUzLKzibl5Rh6TN2THAm28Aqk9fE3Ba7iqQZt6wrwruC9qRRHza
IvQg==
X-Forwarded-Encrypted: i=1;
AJvYcCUsifGOkC49gzTknU+iXRQQRYu35mB3kCxtjsl9AKLTpi0EJwKs7efuBEluNBSE98EPPSid0Qs/37MIJw==@python.org
X-Gm-Message-State: AOJu0Yy3B+3PK5NzBdGiJTjngpqcBoSEmGEvWQ4EPWNNea1FLYApv66y
YH0uGx+FqQVPYX/BKPxo/68DE/0r5uoDw+557sGKdfQFvRYUgxn75xUzZkJdUIyhFQQSS/+xT55
jGmZvjwfk15diol3x0+3WJkvGGZQhaw==
X-Google-Smtp-Source: AGHT+IEsoFOzIx5gLtEbhEUnkmq9ATLlaVe5srT3TlFfFIAcbwO+Lm7aaUlgt682zYRdxjZxinZ5bFsMlAXsZV46vW8=
X-Received: by 2002:a05:6214:3386:b0:6cb:fa1c:87da with SMTP id
6a1803df08f44-6d351b2083emr112604746d6.38.1730501831488; Fri, 01 Nov 2024
15:57:11 -0700 (PDT)
In-Reply-To: <5D77331F-91F4-4000-BF82-DB7A8EA7CD4F@barrys-emacs.org>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAJQBtgmQbJf8CDLx3Ty0DkqAU7LDqC_5zO87Lrz0yOOuOdGAsQ@mail.gmail.com>
X-Mailman-Original-References: <CAJQBtgmwNbjYNr-LWYCia-9+CoRzaLj22YxzyP_EhwSspRD8_g@mail.gmail.com>
<5D77331F-91F4-4000-BF82-DB7A8EA7CD4F@barrys-emacs.org>
View all headers

> Windows does now. They implemented this feature over the last few years.
> Indeed they took inspiration from how linux does this.
>
> You might find https://devblogs.microsoft.com/commandline/ has interesting articles about this.

I don't have MS Windows. My wife does, but I don't want to bother her
with this kind of testing. Does this Windows Terminal support the use
of programs like tmux? Last time I searched for a way to run tmux on
Windows, best I could find was mintty. None of the "native" MS
"solutions" couldn't do it.

Anyways, OP said they were using an actual terminal (emulator) on
Ubuntu, and it looks like their problem is more with extracting
information from the email message rather than with the terminal
capabilities. Also, looks like there was an answer already wrt.
message.get_body()

1

rocksolid light 0.9.8
clearnet tor