Re: Is there any way to make sense of these E-Mail subjects?

2021-12-24 Thread Python
Chris Green wrote: Subject: [SPAM] =?UTF-8?B?8J+TtyBKb2huIEJheHRlci1C?= =?UTF-8?B?cm93biByZWNlbnRseSBw?= =?UTF-8?B?b3N0ZWQgYSBuZXcgcGhv?= =?UTF-8?B?dG8=?= It looks like some sort of mis-encoding of UTF-8 strings, can anyone suggest what might be going on and/or a way to

Re: Is there any way to make sense of these E-Mail subjects?

2021-12-24 Thread Chris Green
Python wrote: > Chris Green wrote: > >Subject: [SPAM] =?UTF-8?B?8J+TtyBKb2huIEJheHRlci1C?= > > =?UTF-8?B?cm93biByZWNlbnRseSBw?= > > =?UTF-8?B?b3N0ZWQgYSBuZXcgcGhv?= > > =?UTF-8?B?dG8=?= > > > > It looks like some sort of mis-encoding of UTF-8 strings, can anyone > > sugg

Re: Selection sort

2021-12-24 Thread Luca Anzilli
Hello try this code def selectionsort(arr): #le=len(arr) for b in range(0,len(arr)-1): # pos=b for a in range(b+1,len(arr)): if arr[b]>arr[a]: arr[b],arr[a]=arr[a],arr[b] return arr arr=[3,5,9,8,2,6] print(selectionsort(arr)) Il giorno ven 24 d

Re: Selection sort

2021-12-24 Thread dn via Python-list
On 25/12/2021 03.22, vani arul wrote: > Hello, > I am trying write a code.Can some help me find the error in my code. > Thanks! > > > def selectionsort(arr): ># le=len(arr) > for b in range(0,len(arr)-1): > pos=b > for a in range(b+1,len(arr)-1): > if arr[b]>ar

Re: email.message_from_file & quoted printable

2021-12-24 Thread Cameron Simpson
On 24Dec2021 09:31, Skip Montanaro wrote: >Cameron> Try decode=True. > >Skip> :dopeslap: Thanks. Never been all that consistent reading documentation. > >The more I think about it, the more I think maybe my lack of >documentation reading wasn't all that unreasonable. The content >transfer encoding

Re: Is there any way to make sense of these E-Mail subjects?

2021-12-24 Thread Dieter Maurer
Chris Green wrote at 2021-12-24 16:03 +: >I have a Python 3 script which processes E-Mail caught in my hosting >provider's 'catchall' mailbox. It looks for things that *might* be >useful E-Mails, forwards them, and throws the rest away. > ... >I have a function which, given a header name, extr

Re: Is there any way to make sense of these E-Mail subjects?

2021-12-24 Thread Barry
> On 24 Dec 2021, at 16:40, Chris Green wrote: > > I have a Python 3 script which processes E-Mail caught in my hosting > provider's 'catchall' mailbox. It looks for things that *might* be > useful E-Mails, forwards them, and throws the rest away. > > I have a function which, given a header

Is there any way to make sense of these E-Mail subjects?

2021-12-24 Thread Chris Green
I have a Python 3 script which processes E-Mail caught in my hosting provider's 'catchall' mailbox. It looks for things that *might* be useful E-Mails, forwards them, and throws the rest away. I have a function which, given a header name, extracts the header and returns it as a string:- #

Re: email.message_from_file & quoted printable

2021-12-24 Thread Skip Montanaro
Cameron> Try decode=True. Skip> :dopeslap: Thanks. Never been all that consistent reading documentation. The more I think about it, the more I think maybe my lack of documentation reading wasn't all that unreasonable. The content transfer encoding and charset are properties of the message as a wh

Re: Selection sort

2021-12-24 Thread Mats Wichmann
On 12/24/21 07:22, vani arul wrote: > Hello, > I am trying write a code.Can some help me find the error in my code. > Thanks! > > > def selectionsort(arr): ># le=len(arr) > for b in range(0,len(arr)-1): > pos=b > for a in range(b+1,len(arr)-1): > if arr[b]>arr[

Re: Selection sort

2021-12-24 Thread Barry Scott
> On 24 Dec 2021, at 14:22, vani arul wrote: > > Hello, > I am trying write a code.Can some help me find the error in my code. > Thanks! > > > def selectionsort(arr): > # le=len(arr) >for b in range(0,len(arr)-1): >pos=b >for a in range(b+1,len(arr)-1): >if

Selection sort

2021-12-24 Thread vani arul
Hello, I am trying write a code.Can some help me find the error in my code. Thanks! def selectionsort(arr): # le=len(arr) for b in range(0,len(arr)-1): pos=b for a in range(b+1,len(arr)-1): if arr[b]>arr[a+1]: arr[b],arr[a+1]=arr[a+1],arr[b]