Re: How to manage accented characters in mail header?

2025-01-06 Thread Peter J. Holzer via Python-list
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

Re: How to manage accented characters in mail header?

2025-01-06 Thread Peter Pearson via Python-list
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 accente

Re: How to manage accented characters in mail header?

2025-01-06 Thread Chris Green via Python-list
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

How to manage accented characters in mail header?

2025-01-06 Thread Chris Green via Python-list
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

Re: Printing UTF-8 mail to terminal

2024-11-05 Thread Cameron Simpson via Python-list
On 04Nov2024 13:02, Loris Bennett wrote: OK, so I can do: ## if args.verbose: for k in mail.keys(): print(f"{k}: {mail.get(k)}") print('') print(mail.get_content()) ##

Re: Printing UTF-8 mail to terminal

2024-11-05 Thread Peter J. Holzer via Python-list
On 2024-11-04 13:02:21 +0100, Loris Bennett via Python-list wrote: > "Loris Bennett" writes: > > "Loris Bennett" writes: > >> Cameron Simpson writes: > >>> On 01Nov2024 10:10, Loris Bennett wrote: > >>>>as expected. The n

Re: Printing UTF-8 mail to terminal

2024-11-04 Thread Loris Bennett via Python-list
"Loris Bennett" writes: > "Loris Bennett" writes: > >> Cameron Simpson writes: >> >>> On 01Nov2024 10:10, Loris Bennett wrote: >>>>as expected. The non-UTF-8 text occurs when I do >>>> >>>> mail = EmailMes

Re: Printing UTF-8 mail to terminal

2024-11-04 Thread Loris Bennett via Python-list
"Loris Bennett" writes: > Cameron Simpson writes: > >> On 01Nov2024 10:10, Loris Bennett wrote: >>>as expected. The non-UTF-8 text occurs when I do >>> >>> mail = EmailMessage() >>> mail.set_content(body, cte="quoted-pri

Re: Printing UTF-8 mail to terminal

2024-11-04 Thread Loris Bennett via Python-list
not using MS Windows. I am using a Gnome terminal on Debian 12 >> locally and connecting via SSH to a AlmaLinux 8 server, where I start a >> tmux session. >> >> > On Thu, Oct 31, 2024 at 5:19 PM Loris Bennett via Python-list >> > wrote: >> >> >> &

Re: Printing UTF-8 mail to terminal

2024-11-04 Thread Loris Bennett via Python-list
Cameron Simpson writes: > On 01Nov2024 10:10, Loris Bennett wrote: >>as expected. The non-UTF-8 text occurs when I do >> >> mail = EmailMessage() >> mail.set_content(body, cte="quoted-printable") >> ... >> >> if args.verbose: &g

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Inada Naoki via Python-list
SSH to a AlmaLinux 8 server, where I start a > tmux session. > > > On Thu, Oct 31, 2024 at 5:19 PM Loris Bennett via Python-list > > wrote: > >> > >> Hi, > >> > >> I have a command-line program which creates an email containing German > >

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Eli the Bearded via Python-list
"quopri" is not a name I'd expect or look for first pass for dealing with MIME quoted-printable encoding. (Me, being me, I'd probably just write it for myself if I didn't quickly find it while working with email.) Elijah -- MIME: multipurpose Internet mail extensions -- https://mail.python.org/mailman/listinfo/python-list

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Jon Ribbens via Python-list
On 2024-11-01, Eli the Bearded <*@eli.users.panix.com> wrote: > In comp.lang.python, Gilmeh Serda wrote: >> Python 3.12.6 (main, Sep 8 2024, 13:18:56) [GCC 14.2.1 20240805] on linux >> Type "help", "copyright", "credits" or "license" for more information. >> >>> help('modules') >> >> Please wai

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Barry via Python-list
> On 1 Nov 2024, at 22:57, Left Right wrote: > > Does this Windows Terminal support the use > of programs like tmux? I have not tried, but should work. Best to install the terminal app from the MS app store. Most use I make is to ssh into linux systems and stuff like editors. Colour output a

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Left Right via Python-list
> 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 both

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Barry via Python-list
> On 31 Oct 2024, at 16:42, Left Right via Python-list > wrote: > > MS Windows doesn't have or use > terminals (that's more of a Unix-related concept). Windows does now. They implemented this feature over the last few years. Indeed they took inspiration from how linux does this. You might f

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Cameron Simpson via Python-list
On 31Oct2024 21:53, alan.ga...@yahoo.co.uk wrote: On 31/10/2024 20:50, Cameron Simpson via Python-list wrote: If you're just dealing with this directly, use the `quopri` stdlib module: https://docs.python.org/3/library/quopri.html One of the things I love about this list are these little feat

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Cameron Simpson via Python-list
On 01Nov2024 10:10, Loris Bennett wrote: as expected. The non-UTF-8 text occurs when I do mail = EmailMessage() mail.set_content(body, cte="quoted-printable") ... if args.verbose: print(mail) which is presumably also correct. The question is: What conversion is necessar

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Cameron Simpson via Python-list
pproach to me. And you are right that encoding for the actual mail which is received is automatically sorted out. If I display the raw email in my client I get the following: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable ... Su

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Dieter Maurer via Python-list
Loris Bennett wrote at 2024-11-1 10:10 +0100: > ... > mail.set_content(body, cte="quoted-printable") In the line above, you request the content to use the "cte" (= "Content-Transfer-Encoding") "quoted-printable" and consequently, the content is encoded with `quoted-printable`. Maybe, you do not n

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Loris Bennett via Python-list
Cameron Simpson writes: > On 31Oct2024 16:33, Loris Bennett wrote: >>I have a command-line program which creates an email containing German >>umlauts. On receiving the mail, my mail client displays the subject and >>body correctly: > [...] >>So far, so good. How

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Loris Bennett via Python-list
splayed. I'm not using MS Windows. I am using a Gnome terminal on Debian 12 locally and connecting via SSH to a AlmaLinux 8 server, where I start a tmux session. > On Thu, Oct 31, 2024 at 5:19 PM Loris Bennett via Python-list > wrote: >> >> Hi, >> >> I have a command-l

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Loris Bennett via Python-list
"Loris Bennett" writes: > Cameron Simpson writes: > >> On 31Oct2024 16:33, Loris Bennett wrote: >>>I have a command-line program which creates an email containing German >>>umlauts. On receiving the mail, my mail client displays the subject and >&g

Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Alan Gauld via Python-list
On 31/10/2024 20:50, Cameron Simpson via Python-list wrote: > That looks to me like quoted-printable. This is an encoding for binary > transport of text to make it robust against not 8-buit clean ... > If you're just dealing with this directly, use the `quopri` stdlib > module: https://docs.py

Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Cameron Simpson via Python-list
On 31Oct2024 16:33, Loris Bennett wrote: I have a command-line program which creates an email containing German umlauts. On receiving the mail, my mail client displays the subject and body correctly: [...] So far, so good. However, when I use the --verbose option to print the mail to the

Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Left Right via Python-list
-line program which creates an email containing German > umlauts. On receiving the mail, my mail client displays the subject and > body correctly: > > Subject: Übung > > Sehr geehrter Herr Dr. Bennett, > > Dies ist eine Übung. > > So far, so good. However, whe

Printing UTF-8 mail to terminal

2024-10-31 Thread Loris Bennett via Python-list
Hi, I have a command-line program which creates an email containing German umlauts. On receiving the mail, my mail client displays the subject and body correctly: Subject: Übung Sehr geehrter Herr Dr. Bennett, Dies ist eine Übung. So far, so good. However, when I use the --verbose

Re: Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-08 Thread Peter J. Holzer
On 2023-01-08 13:49:38 +0200, jacob kruger wrote: > Ok, the specific usage case right now is that I need to set up a process > pulling contents of e-mail messages from an IMAP protocol mail server, which > I then populate into a postgresql database, and, since this is the inbox of >

Re: Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-08 Thread jacob kruger
Ok, the specific usage case right now is that I need to set up a process pulling contents of e-mail messages from an IMAP protocol mail server, which I then populate into a postgresql database, and, since this is the inbox of a relatively large-scale CRM/support system, there are currently

Re: Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-06 Thread Chris Angelico
On Sat, 7 Jan 2023 at 04:54, jacob kruger wrote: > > I am just trying to make up my mind with regards to what I should look > into working with/making use of in terms of what have put in subject line? > > > As in, if want to be able to trigger multiple/various threads/processes > to run in the bac

Re: Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-06 Thread Peter J. Holzer
On 2023-01-06 10:18:24 +0200, jacob kruger wrote: > I am just trying to make up my mind with regards to what I should look into > working with/making use of in terms of what have put in subject line? > > > As in, if want to be able to trigger multiple/various threads/processes to > run in the bac

Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-06 Thread jacob kruger
I am just trying to make up my mind with regards to what I should look into working with/making use of in terms of what have put in subject line? As in, if want to be able to trigger multiple/various threads/processes to run in the background, possibly monitoring their states, either via inte

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: 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 funct

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 h

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

Re: Another 2 to 3 mail encoding problem

2020-08-31 Thread Peter J. Holzer
his: [...] > > Both reasons are weird. [...] > > But then you haven't shown where msg comes from. How do you parse the > > message to get "msg"? > > > > Can you construct a minimal test message which triggers the bug? > > > Yes, simply sending

Finally fixed my Python 2 to Python 3 e-mail problem

2020-08-29 Thread Chris Green
I've started a new thread because this relates to two or three threads I started here over the past few days. First, thank you everyone for all the help and suggestions. I've finally fixed the problem, it was due to sys.stdin.read() returning a string object in Python 3 as opposed to bytes in Py

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread MRAB
On 2020-08-27 17:29, Barry Scott wrote: On 26 Aug 2020, at 16:10, Chris Green wrote: UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in position 4: ordinal not in range(128) So what do I need to do to the message I'm adding with mbx.add(msg) to fix this? (I assume that'

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Barry Scott
> On 26 Aug 2020, at 16:10, Chris Green wrote: > > UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in > position 4: ordinal not in range(128) > > So what do I need to do to the message I'm adding with mbx.add(msg) to > fix this? (I assume that's what I need to do). >>> i

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Barry
> On 27 Aug 2020, at 10:40, Chris Green wrote: > > Karsten Hilbert wrote: >>> Terry Reedy wrote: >>>>> On 8/26/2020 11:10 AM, Chris Green wrote: >>>>> >>>>>> I have a simple[ish] local mbox mail delivery module as foll

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Green
Richard Damon wrote: > On 8/27/20 4:31 AM, Chris Green wrote: > > While an E-Mail body possibly *shouldn't* have non-ASCII characters in > > it one must be able to handle them without errors. In fact haven't > > the RFCs changed such that the message body shou

Aw: Re: Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Karsten Hilbert
> > > Because of this, the Python 3 str type is not suitable to store an email > > > message, since it insists on the string being Unicode encoded, > > > > I should greatly appreciate to be enlightened as to what > > a "string being Unicode encoded" is intended to say ? > > > > A Python 3 "str" or

Re: Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Angelico
On Thu, Aug 27, 2020 at 11:10 PM Karsten Hilbert wrote: > > > Because of this, the Python 3 str type is not suitable to store an email > > message, since it insists on the string being Unicode encoded, > > I should greatly appreciate to be enlightened as to what > a "string being Unicode encoded"

Aw: Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Karsten Hilbert
> Because of this, the Python 3 str type is not suitable to store an email > message, since it insists on the string being Unicode encoded, I should greatly appreciate to be enlightened as to what a "string being Unicode encoded" is intended to say ? Thanks, Karsten -- https://mail.python.org/ma

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Richard Damon
On 8/27/20 4:31 AM, Chris Green wrote: > While an E-Mail body possibly *shouldn't* have non-ASCII characters in > it one must be able to handle them without errors. In fact haven't > the RFCs changed such that the message body should be 8-bit clean? > Anyway I think the

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Green
Karsten Hilbert wrote: > > Terry Reedy wrote: > > > On 8/26/2020 11:10 AM, Chris Green wrote: > > > > > > > I have a simple[ish] local mbox mail delivery module as follows:- > > > ... > > > > It has run faultlessly for many years under P

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Cameron Simpson
On 27Aug2020 09:31, Chris Green wrote: >I can provoke the error simply by sending myself an E-Mail with >accented characters in it. I'm pretty sure my Linux system is set up >correctly for UTF8 characters, I certainly seem to be able to send and >receive these to others and

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Peter Otten
Chris Green wrote: > To add a little to this, the problem is definitely when I receive a > message with UTF8 (or at least non-ascci) characters in it. My code > is basically very simple, the main program reads an E-Mail message > received from .forward on its standard input and make

Aw: Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Karsten Hilbert
> Terry Reedy wrote: > > On 8/26/2020 11:10 AM, Chris Green wrote: > > > > > I have a simple[ish] local mbox mail delivery module as follows:- > > ... > > > It has run faultlessly for many years under Python 2. I've now > > > changed the

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Green
r happens during parsing, not > when trying to serialize the already parsed message. > > But then you haven't shown where msg comes from. How do you parse the > message to get "msg"? > > Can you construct a minimal test message which triggers the bug? > Yes,

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Green
Terry Reedy wrote: > On 8/26/2020 11:10 AM, Chris Green wrote: > > > I have a simple[ish] local mbox mail delivery module as follows:- > ... > > It has run faultlessly for many years under Python 2. I've now > > changed the calling program to Python 3 and while

Re: Another 2 to 3 mail encoding problem

2020-08-26 Thread Terry Reedy
On 8/26/2020 11:10 AM, Chris Green wrote: I have a simple[ish] local mbox mail delivery module as follows:- ... It has run faultlessly for many years under Python 2. I've now changed the calling program to Python 3 and while it handles most E-Mail OK I have just got the following

Unsubscrip (Re: Another 2 to 3 mail encoding problem)

2020-08-26 Thread Terry Reedy
On 8/26/2020 11:27 AM, Alexa Oña wrote: Don’t send me more emails -- https://mail.python.org/mailman/listinfo/python-list Unsubscribe yourself by going to the indicated url. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Another 2 to 3 mail encoding problem

2020-08-26 Thread Michael Torrie
On 8/26/20 9:27 AM, Alexa Oña wrote: > Don’t send me more emails > > https://mail.python.org/mailman/listinfo/python-list ^ Please unsubscribe from the mailing list. Click on the link above. Thank you. -- https://mail.python.org/mailman/listinfo/pyth

Re: Another 2 to 3 mail encoding problem

2020-08-26 Thread Peter J. Holzer
On 2020-08-26 16:10:35 +0100, Chris Green wrote: > I'm unearthing a few issues here trying to convert my mail filter and > delivery programs from 2 to 3! > > I have a simple[ish] local mbox mail delivery module as follows:- > [...] > class mymbox(mailb

Re: Another 2 to 3 mail encoding problem

2020-08-26 Thread Python
Alexa Oña wrote: Don’t send me more emails Obtener Outlook para iOS You are the one spamming the mailing list with unrelated posts. STOP. -- https://mail.python.org/mailman/listinfo/python-list

Re: Another 2 to 3 mail encoding problem

2020-08-26 Thread Chris Green
To add a little to this, the problem is definitely when I receive a message with UTF8 (or at least non-ascci) characters in it. My code is basically very simple, the main program reads an E-Mail message received from .forward on its standard input and makes it into an mbox message as follows

Re: Another 2 to 3 mail encoding problem

2020-08-26 Thread Alexa Oña
Don’t send me more emails Obtener Outlook para iOS<https://aka.ms/o0ukef> De: Python-list en nombre de Chris Green Enviado: Wednesday, August 26, 2020 5:10:35 PM Para: python-list@python.org Asunto: Another 2 to 3 mail encoding problem I'm unear

Another 2 to 3 mail encoding problem

2020-08-26 Thread Chris Green
I'm unearthing a few issues here trying to convert my mail filter and delivery programs from 2 to 3! I have a simple[ish] local mbox mail delivery module as follows:- import mailbox import logging import logging.handlers import os import time # # #

Re: 3rd party mail package

2019-12-18 Thread Terry Reedy
On 12/18/2019 12:29 PM, Tobiah wrote: On 12/18/19 9:27 AM, Tobiah wrote: On 12/14/19 1:13 AM, Barry wrote: I guess the 2nd party is the user. I think of the user as the first party. 1) I want a thing for python. 2) Python doesn't have a very good one 3) Someone else will give it to you W

Re: 3rd party mail package

2019-12-18 Thread Tobiah
I think of the user as the first party But that is not what Wikipedia article you linked says. “ In commerce, a "third-party source" means a supplier (or service provider) who is not directly controlled by either the seller (first party) nor the customer/buyer (second party) in a business tra

Re: 3rd party mail package

2019-12-18 Thread Barry
> On 18 Dec 2019, at 17:33, Tobiah wrote: > > On 12/14/19 1:13 AM, Barry wrote: >> I guess the 2nd party is the user. > > I think of the user as the first party But that is not what Wikipedia article you linked says. “ In commerce, a "third-party source" means a supplier (or service provide

Re: 3rd party mail package

2019-12-18 Thread Tobiah
On 12/14/19 1:13 AM, Barry wrote: I guess the 2nd party is the user. I think of the user as the first party. 1) I want a thing for python. 2) Python doesn't have a very good one 3) Someone else will give it to you Barry On 13 Dec 2019, at 21:13, Abdur-Rahmaan Janhangeer wrote: Wond

Re: 3rd party mail package

2019-12-18 Thread Tobiah
On 12/18/19 9:27 AM, Tobiah wrote: On 12/14/19 1:13 AM, Barry wrote: I guess the 2nd party is the user. I think of the user as the first party. 1) I want a thing for python. 2) Python doesn't have a very good one 3) Someone else will give it to you Wikipedia disagrees with me: https://

Re: 3rd party mail package

2019-12-14 Thread Barry
I guess the 2nd party is the user. Barry > On 13 Dec 2019, at 21:13, Abdur-Rahmaan Janhangeer > wrote: > > Wonder where the 2nd party went to. Thanks will look into it! > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading mail getting [, ...

2019-12-14 Thread dieter
Abdur-Rahmaan Janhangeer writes: > Can you please indicate where is the header in my code above? Thanks. Python is an object oriented language. As a consequence, Python functions often return complex objects and not only elementary objects. Use the documentation of the complex object's class to

Re: 3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
That's my starting point au fait. Was asking for a 3rd party package. gmail from pypi has a nice api 👌 (filter etc seem awesome). Wondered if something similar exists. -- https://mail.python.org/mailman/listinfo/python-list

Re: 3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Wonder where the 2nd party went to. Thanks will look into it! -- https://mail.python.org/mailman/listinfo/python-list

Re: 3rd party mail package

2019-12-13 Thread Brian Oney via Python-list
How about a 1st party package in the stdlib? >From the hip: Take an example or two from the 'python 2 or 3 standard library >by example' book by a guy named Doug. Hth (really) -- https://mail.python.org/mailman/listinfo/python-list

3rd party mail package

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Greetings everybody, What is the best 3rd party package for reading mail? Got a gmail 0.6.x on pypi but it is highly inconsistent (and last commit 2013). Any recommendations? Yours, Abdur-Rahmaan Janhangeer pythonmembers.club <http://www.pythonmembers.club/> | github <https://github.

Re: Reading mail getting [, ...

2019-12-13 Thread Abdur-Rahmaan Janhangeer
Can you please indicate where is the header in my code above? Thanks. Yours, Abdur-Rahmaan Janhangeer pythonmembers.club | github Mauritius > -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading mail getting [, ...

2019-11-14 Thread MRAB
On 2019-11-14 19:43, Abdur-Rahmaan Janhangeer wrote: Greetings, Using this code to read mail. I'm printing to file only mails sent by some people. For some mails i get the body as the below instead of actual text: [, ] instead of the actual mail body. Here is the code: # # import im

Reading mail getting [, ...

2019-11-14 Thread Abdur-Rahmaan Janhangeer
Greetings, Using this code to read mail. I'm printing to file only mails sent by some people. For some mails i get the body as the below instead of actual text: [, ] instead of the actual mail body. Here is the code: # # import imaplib import email import time my_senders = ['y...@x

Help on Code logic to remove duplicate mails from webapp mail box

2019-10-30 Thread emanbanerjee
Hi I am working on a project where we make connections to webapp mail and extract subject, sender,body etc from mails and save it in dataframe and insert it n SQL DB. My next challenge is to remove any duplicate mails from mailbox. Could you kindly help me. It can be a new mail which is

Re: Help on Code logic to remove duplicate mails from webapp mail box

2019-10-30 Thread Chris Angelico
On Wed, Oct 30, 2019 at 6:36 PM eman banerjee wrote: > > On Wednesday, 30 October 2019 12:40:06 UTC+5:30, eman banerjee wrote: > > Hi > > > > I am working on a project where we make connections to webapp mail and > > extract subject, sender,body etc from mail

Re: Help on Code logic to remove duplicate mails from webapp mail box

2019-10-30 Thread eman banerjee
On Wednesday, 30 October 2019 12:40:06 UTC+5:30, eman banerjee wrote: > Hi > > I am working on a project where we make connections to webapp mail and > extract subject, sender,body etc from mails and save it in dataframe and > insert it n SQL DB. > > My next chall

Re: how to generate a standard email form by default OS mail client?

2019-07-30 Thread Thomas Jollans
7;: subject, 'body': body}, quote_via=urllib.parse.quote) If you open that URI with the webbrowser module, it should work. Well, it might. On my system, Chrome refuses to open a mailto URI like this, but Firefox plays along. The better option would be to call the mail program directly (s

how to generate a standard email form by default OS mail client?

2019-07-30 Thread dmitrey15
Hello, is Python capable of generating a email form (from standard data - address, topic, string message) with raising it by a default OS email client, e.g. Thunderbird? User would like to have a possibility to review/modify email content inside the OS email client window before sending it. Ra

Re: unicode mail list archeology

2019-04-20 Thread Luuk
On 20-4-2019 12:47, Luuk wrote: On 20-4-2019 11:26, wxjmfa...@gmail.com wrote: http://unicode.org/mail-arch/unicode-ml/Archives-Old/UML018/0594.html [quoot] > It is simple to make a compacter version of UTF-8 using the base > 256 character codes were possible (comacter for many lan

Re: unicode mail list archeology

2019-04-20 Thread Luuk
On 20-4-2019 11:26, wxjmfa...@gmail.com wrote: http://unicode.org/mail-arch/unicode-ml/Archives-Old/UML018/0594.html [quoot] > It is simple to make a compacter version of UTF-8 using the base > 256 character codes were possible (comacter for many languages). No. If you think otherwis

Re: beware of linked in - mail used on this list

2018-08-02 Thread Abdur-Rahmaan Janhangeer
was supposed to be one i'm aware of but 3 in 1 day ? Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: beware of linked in - mail used on this list

2018-08-02 Thread Steven D'Aprano
On Thu, 02 Aug 2018 22:35:10 +0400, Abdur-Rahmaan Janhangeer wrote: > just an info if you are using the mail you use in this list for linked > in you might get surprises > > apologies if you got a mail from linkedin somewhere LinkedIn is a spammer. I frequently get friend requests

beware of linked in - mail used on this list

2018-08-02 Thread Abdur-Rahmaan Janhangeer
just an info if you are using the mail you use in this list for linked in you might get surprises apologies if you got a mail from linkedin somewhere Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: your mail

2018-06-10 Thread Bob Gailer
On Jun 10, 2018 12:44 PM, "Karsten Hilbert" wrote: > > On Sun, Jun 10, 2018 at 06:58:17PM +0530, sagar daya wrote: > > > Couldn't install any module from pip > > Plz help??? The only help I can give at this point is to suggest that you tell us what you tried and how it failed. Please copy and pas

Re: your mail

2018-06-10 Thread Karsten Hilbert
On Sun, Jun 10, 2018 at 06:58:17PM +0530, sagar daya wrote: > Couldn't install any module from pip > Plz help??? https://duckduckgo.com kh -- -- https://mail.python.org/mailman/listinfo/python-list

how to create auto generated mail from robo framework upon execution completion of TCs

2018-04-18 Thread supswain
Hi, I am having below setup robofraemwork setup info -> Robot Framework 2.8.1 32 bit python->Python 2.7.6 32 bit OS->windows 7 64 bit I am running test cases from Robo framework and want to create any library proc through which I can get auto generated mail from robo-framework

[ANNOUNCE] Mail Drake version 0.1.7

2017-04-04 Thread Ben Finney
Howdy all, I am pleased to present Mail Drake (version 0.1.7), now available at PyPI https://pypi.python.org/pypi/maildrake>. Mail Drake is a development tool for testing email traffic. Run Mail Drake’s SMTP server on a local port, send email to it, and inspect the message queue in a local

Re: [pyinotify] help required to send only one mail for chunk of events

2016-05-23 Thread Chris Angelico
On Tue, May 24, 2016 at 6:20 AM, Mohan L wrote: > I wanted to send an email notification with content of logfile after 15 > mins on any change. The idea is I want to send only one mail for chunk of > events.Say for example, I want to send only one email when some one extract > a ta

[pyinotify] help required to send only one mail for chunk of events

2016-05-23 Thread Mohan L
Hi All, I am using the bellow script to watch directories. Using 20 seconds to aggregate together a larger chunk of events and enabled coalescing of events. I wanted to send an email notification with content of logfile after 15 mins on any change. The idea is I want to send only one mail for

Re: Encrypted web mail

2015-08-15 Thread Uri Even-Chen
Hi Dennis, On Sat, Aug 15, 2015 at 7:35 PM, Dennis Lee Bieber wrote: > On Sat, 15 Aug 2015 12:47:17 +0300, Uri Even-Chen > declaimed the following: > > >To Python, Django and Speedy Mail Software developers, > > > >Is it possible to make Speedy Mail encrypted?

Re: Encrypted web mail

2015-08-15 Thread Uri Even-Chen
ish/> On Sat, Aug 15, 2015 at 6:04 PM, Michael Torrie wrote: > On 08/15/2015 03:47 AM, Uri Even-Chen wrote: > > To Python, Django and Speedy Mail Software developers, > > > > Is it possible to make Speedy Mail encrypted? I want mail to be encrypted > > on the serv

Re: Encrypted web mail

2015-08-15 Thread Michael Torrie
On 08/15/2015 03:47 AM, Uri Even-Chen wrote: > To Python, Django and Speedy Mail Software developers, > > Is it possible to make Speedy Mail encrypted? I want mail to be encrypted > on the server, and only the user will be able to read his/her mail. The > user's password will

Re: Encrypted web mail

2015-08-15 Thread Uri Even-Chen
e cipher. > > > > -- > Pedro Alves > > *Mestrando em Ciência da Computação* > *Universidade Estadual de Campinas* > > 2015-08-15 6:47 GMT-03:00 Uri Even-Chen : > >> To Python, Django and Speedy Mail Software developers, >> >> Is it possible

Encrypted web mail

2015-08-15 Thread Uri Even-Chen
To Python, Django and Speedy Mail Software developers, Is it possible to make Speedy Mail encrypted? I want mail to be encrypted on the server, and only the user will be able to read his/her mail. The user's password will be encrypted on the server and nobody will be able to read the user&#

Re: How we can send mail with attachment in Python?

2015-07-23 Thread Robert Davis
On Monday, July 20, 2015 at 12:01:49 AM UTC-5, Chris Angelico wrote: > On Mon, Jul 20, 2015 at 2:54 PM, Kevin Peterson wrote: > > How we can send mail with attachment in Python? Is it any prerequisite for > > it? > > You could use your favourite search engine to look th

Re: How we can send mail with attachment in Python?

2015-07-20 Thread dieter
Kevin Peterson writes: > How we can send mail with attachment in Python? Is it any prerequisite for it? You look at the "email" package to build the message and the "smtplib" package to send the message - both are part of Python's runtime library and documented in i

Re: How we can send mail with attachment in Python?

2015-07-19 Thread Chris Angelico
On Mon, Jul 20, 2015 at 2:54 PM, Kevin Peterson wrote: > How we can send mail with attachment in Python? Is it any prerequisite for it? You could use your favourite search engine to look this up. Or you could poke around with the Python standard library and see if anything looks promis

How we can send mail with attachment in Python?

2015-07-19 Thread Kevin Peterson
Hi, How we can send mail with attachment in Python? Is it any prerequisite for it? Thanks, Kevin Peterson -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   >