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

Re: Is there a mail list like python-list in c?

2015-06-07 Thread Cameron Simpson
On 08Jun2015 01:18, Jimages wrote: i know that the question may not be suitable. But i am learning python as well as c. And i find the list valuable. After google mail list about c. i don't find even one mail list t about programming in C. So could you recommend a mail list about programmi

Is there a mail list like python-list in c?

2015-06-07 Thread Jimages
Hi! i know that the question may not be suitable. But i am learning python as well as c. And i find the list valuable. After google mail list about c. i don't find even one mail list t about programming in C. So could you recommend a mail list about programming in c? BTW excuse my bad En

U.K. Royal Mail MailMark web service from python?

2015-04-13 Thread loial
Anyone out there got any examples of calling the UK Royal Mail Mailmark web service from python? -- https://mail.python.org/mailman/listinfo/python-list

Re: html page mail link to webmail program

2014-12-02 Thread Cameron Simpson
On 11Nov2014 17:35, Ethan Furman wrote: Okay, the explicit Python question: Clicking on a mail link in a web browser can start an external program. I would like that external program to be a Python script that: opens a new tab in the currently running browser (or a new default browser

Re: html page mail link to webmail program

2014-11-27 Thread Akira Li
Ethan Furman writes: > On 11/11/2014 05:08 PM, Ben Finney wrote: >> Ethan Furman writes: >> >>> My wife (using a Win7 machine) will be on a web page that has a link >>> to mail somebody. She clicks on it, and it opens the currently >>> installed but

Re: html page mail link to webmail program

2014-11-12 Thread Jerry Hill
On Tue, Nov 11, 2014 at 8:04 PM, Ethan Furman wrote: > My wife (using a Win7 machine) will be on a web page that has a link to mail > somebody. She clicks on it, and it opens the currently installed but unused > Thunderbird. As others have mentioned, this is more a question of configu

Re: html page mail link to webmail program

2014-11-12 Thread Joel Goldstick
t;>>>> My wife (using a Win7 machine) will be on a web page that has a link >>>>> to mail somebody. She clicks on it, and it opens the currently >>>>> installed but unused Thunderbird. >>>>> >>>>> Ideally, what would happen i

Re: html page mail link to webmail program

2014-11-12 Thread alister
On Wed, 12 Nov 2014 08:56:07 +, alister wrote: > On Tue, 11 Nov 2014 17:35:11 -0800, Ethan Furman wrote: > >> On 11/11/2014 05:08 PM, Ben Finney wrote: >>> Ethan Furman writes: >>> >>>> My wife (using a Win7 machine) will be on a web page that has

Re: html page mail link to webmail program

2014-11-12 Thread alister
On Tue, 11 Nov 2014 17:35:11 -0800, Ethan Furman wrote: > On 11/11/2014 05:08 PM, Ben Finney wrote: >> Ethan Furman writes: >> >>> My wife (using a Win7 machine) will be on a web page that has a link >>> to mail somebody. She clicks on it, and it opens the c

Re: html page mail link to webmail program

2014-11-11 Thread Chris Angelico
On Wed, Nov 12, 2014 at 12:42 PM, Ben Finney wrote: > Ethan Furman writes: > >> Okay, the explicit Python question: Clicking on a mail link in a web >> browser can start an external program. I would like that external >> program to be a Python script that [control

Re: html page mail link to webmail program

2014-11-11 Thread Ben Finney
Ethan Furman writes: > Okay, the explicit Python question: Clicking on a mail link in a web > browser can start an external program. I would like that external > program to be a Python script that [controls an already-running web > browser to visit a URL and operate a web

Re: html page mail link to webmail program

2014-11-11 Thread Ethan Furman
On 11/11/2014 05:08 PM, Ben Finney wrote: Ethan Furman writes: My wife (using a Win7 machine) will be on a web page that has a link to mail somebody. She clicks on it, and it opens the currently installed but unused Thunderbird. Ideally, what would happen is a new window/tab would open to

Re: html page mail link to webmail program

2014-11-11 Thread Ben Finney
Ethan Furman writes: > My wife (using a Win7 machine) will be on a web page that has a link > to mail somebody. She clicks on it, and it opens the currently > installed but unused Thunderbird. > > Ideally, what would happen is a new window/tab would open to gmail > with a

html page mail link to webmail program

2014-11-11 Thread Ethan Furman
Just in case that subject line is not perfectly clear: ;) My wife (using a Win7 machine) will be on a web page that has a link to mail somebody. She clicks on it, and it opens the currently installed but unused Thunderbird. Ideally, what would happen is a new window/tab would open to gmail

Re: your mail

2014-10-18 Thread Peter Otten
Alain Ketterlin wrote: > Terry Reedy writes: > >> On 10/17/2014 6:43 AM, Cameron Simpson wrote: >>> On 17Oct2014 11:45, Dhananjay wrote: >> 2.1576318858 -1.8651195165 4.2333428278 ... (total of 200 lines) Columns 1,2,3 corresponds to x,y,z axis data points. >> >>>fo

Re: your mail

2014-10-18 Thread Alain Ketterlin
Terry Reedy writes: > On 10/17/2014 6:43 AM, Cameron Simpson wrote: >> On 17Oct2014 11:45, Dhananjay wrote: > >>> 2.1576318858 -1.8651195165 4.2333428278 >>> ... >>> (total of 200 lines) >>> >>> Columns 1,2,3 corresponds to x,y,z axis data points. > >>for line in open('flooding-psiphi.dat','

Re: your mail

2014-10-17 Thread Terry Reedy
On 10/17/2014 6:43 AM, Cameron Simpson wrote: On 17Oct2014 11:45, Dhananjay wrote: 2.1576318858 -1.8651195165 4.2333428278 ... (total of 200 lines) Columns 1,2,3 corresponds to x,y,z axis data points. for line in open('flooding-psiphi.dat','r'): line = line.split() xs.app

Re: your mail

2014-10-17 Thread Cameron Simpson
On 17Oct2014 11:45, Dhananjay wrote: This might be simple, but I guess I am missing something here. I have data file as follows: 2.1576318858 -1.8651195165 4.2333428278 2.1681875208 -1.9229968780 4.1989176884 2.3387636157 -2.0376253255 2.4460899122 2.1696565965 -2.6186941271 4.4172007912 2.0848

Re: error while writing program to send mail.

2014-09-01 Thread Denis McMahon
On Tue, 02 Sep 2014 05:05:41 +0530, Om Prakash wrote: > fp = open("message", 'rb') "message" here is a string literal > fp.close should be fp.close() > msg['Subject'] = 'The contents of $s' % message message here is a variable. The variable named message has not previously had a value assig

Re: error while writing program to send mail.

2014-09-01 Thread Om Prakash
On 09/02/2014 05:29 AM, MRAB wrote: On 2014-09-02 00:35, Om Prakash wrote: Hi, I am writing this program from https://docs.python.org/2/library/email-examples.html but getting the error as singhom@debian:~/pythons$ python send_email.py Traceback (most recent call last): File "send_email.p

Re:error while writing program to send mail.

2014-09-01 Thread Dave Angel
Om Prakash Wrote in message: > Hi, > > I am writing this program from > https://docs.python.org/2/library/email-examples.html > > but getting the error as > > singhom@debian:~/pythons$ python send_email.py > Traceback (most recent call last): >File "send_email.py", line 18, in > msg[

Re: error while writing program to send mail.

2014-09-01 Thread MRAB
On 2014-09-02 00:35, Om Prakash wrote: Hi, I am writing this program from https://docs.python.org/2/library/email-examples.html but getting the error as singhom@debian:~/pythons$ python send_email.py Traceback (most recent call last): File "send_email.py", line 18, in msg['Subject']

Re: error while writing program to send mail.

2014-09-01 Thread Cameron Simpson
On 02Sep2014 05:05, Om Prakash wrote: I am writing this program from https://docs.python.org/2/library/email-examples.html but getting the error as singhom@debian:~/pythons$ python send_email.py Traceback (most recent call last): File "send_email.py", line 18, in msg['Subject'] = 'The c

error while writing program to send mail.

2014-09-01 Thread Om Prakash
Hi, I am writing this program from https://docs.python.org/2/library/email-examples.html but getting the error as singhom@debian:~/pythons$ python send_email.py Traceback (most recent call last): File "send_email.py", line 18, in msg['Subject'] = 'The contents of $s' % message NameErr

Re: why i can't copy mail with imaplib?

2014-08-10 Thread Ben Finney
luofeiyu writes: > >>> x.con.copy(b"1","[Gmail]/Important") > ('NO', [b'[TRYCREATE] No folder [Gmail]/Important (Failure)']) Your questions have mostly been unrelated to Python, and this is another example. You should search elsewhere for assistance with IMAP and GMail. -- \“The restr

Re: why i can't copy mail with imaplib?

2014-08-10 Thread luofeiyu
>>> x.con.list() ('OK', [b'(\\HasNoChildren) "/" "INBOX"', b'(\\Noselect \\HasChildren) "/" "[Gma il]"', b'(\\HasNoChildren \\Junk) "/" "[Gmail]/&V4NXPpCuTvY-"', b'(\\HasNoChildr en \\Trash) "/" "[Gmail]/&XfJSIJZkkK5O9g-"', b'(\\HasNoChildren \\Flagged) "/" " [Gmail]/&XfJSoGYfaAc-"', b'(\\HasNo

Re: why i can't copy mail with imaplib?

2014-08-10 Thread John Gordon
In luofeiyu writes: > self.con.select("inbox") > self.con.copy(b"1","[Gmail]/&kc2JgQ-]") > why i can not copy the first email into my important mailbox? What happens when you run the above code? Do you get an error? -- John Gordon Imagine what it must be like for a real medical do

  1   2   3   4   5   6   7   8   9   >