On 2025-01-04 19:07:57 +, Chris Green via Python-list wrote:
> Stefan Ram wrote:
> > Chris Green wrote or quoted:
> > >From: =?utf-8?B?U8OpYmFzdGllbiBDcmlnbm9u?=
> >
> Is there a simple[r] way to extract just the 'real' address between
> the <>, that's all I actually need. I think it has t
On Sat, 4 Jan 2025 14:31:24 +, Chris Green wrote:
> I have a Python script that filters my incoming E-Mail. It has been
> working OK (with various updates and improvements) for many years.
>
> I now have a minor new problem when handling E-Mail with a From: that
> has accented characters in i
Stefan Ram wrote:
> Chris Green wrote or quoted:
> >From: =?utf-8?B?U8OpYmFzdGllbiBDcmlnbm9u?=
>
> In Python, when you roll with decode_header from the email.header
> module, it spits out a list of parts, where each part is like
> a tuple of (decoded string, charset). To smash these decod
I have a Python script that filters my incoming E-Mail. It has been
working OK (with various updates and improvements) for many years.
I now have a minor new problem when handling E-Mail with a From: that
has accented characters in it:-
From: Sébastien Crignon
I use Python mailbox to pars