Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
On Thu, Aug 8, 2019 at 1:33 PM Peter Otten <__pete...@web.de> wrote: > > Larry Martell wrote: > > >> Pyke has been ported to py3. Here is the code that returns the data I > >> am trying to process: > >> > >> return map(self.doctor_answer, it) >

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Peter Otten
Larry Martell wrote: >> Pyke has been ported to py3. Here is the code that returns the data I >> am trying to process: >> >> return map(self.doctor_answer, it) >> >> I don't see anything calling imap. > > I grepped through the entire pyke code

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
ils with: AttributeError: module 'itertools' has no > >>> attribute 'imap' > >> > >> In Python 3 the map() builtin is "lazy", so you can use that instead. > >> > >>> I tried converting presentationGen to a list but get the same

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Rhodri James
On 08/08/2019 17:16, Larry Martell wrote: On Thu, Aug 8, 2019 at 11:30 AM Peter Otten <__pete...@web.de> wrote: Larry Martell wrote: [snip] But in py3 that fails with: AttributeError: module 'itertools' has no attribute 'imap' In Python 3 the map() builtin is &

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
vasculopathy_engine = > > > knowledge_engine.engine((rule_base_source_folder, > > > (compiled_rule_base_folder))) > > > with vasculopathy_engine.prove_goal(...) as presentationGen: > > > for vals, plan in presentationGen: > > > > > > But

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
> > with vasculopathy_engine.prove_goal(...) as presentationGen: > > for vals, plan in presentationGen: > > > > But in py3 that fails with: AttributeError: module 'itertools' has no > > attribute 'imap' > > In Python 3 the map() builtin is &q

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread MRAB
27; has no attribute 'imap' I tried converting presentationGen to a list but get the same error. How can I make this work in py3? The built-in 'map' in Python 3 does what 'imap' did in Python 2. -- https://mail.python.org/mailman/listinfo/python-list

Re: AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Peter Otten
th: AttributeError: module 'itertools' has no > attribute 'imap' In Python 3 the map() builtin is "lazy", so you can use that instead. > I tried converting presentationGen to a list but get the same error. > > How can I make this work in py3? The problem

AttributeError: module 'itertools' has no attribute 'imap'

2019-08-08 Thread Larry Martell
= knowledge_engine.engine((rule_base_source_folder, (compiled_rule_base_folder))) with vasculopathy_engine.prove_goal(...) as presentationGen: for vals, plan in presentationGen: But in py3 that fails with: AttributeError: module 'itertools' has no attribute 'imap' I tried conver

RE: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Prasad, Ramit
brint...@controlledthinking.com wrote: > > On Tuesday, November 20, 2012 2:41:58 PM UTC-8, Prasad, Ramit wrote: > > brintoul at controlledthinking.com wrote: > > > > Apologies, I misread your question. > > > > According to the imaplib docs, you can subclass IMAP4 and override > > `IMAP4.open` to c

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread brintoul
On Tuesday, November 20, 2012 2:41:58 PM UTC-8, Prasad, Ramit wrote: > brintoul at controlledthinking.com wrote: > > Apologies, I misread your question. > > > > According to the imaplib docs, you can subclass IMAP4 and override > > `IMAP4.open` to create the socket and bind it to the desired

RE: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Prasad, Ramit
brint...@controlledthinking.com wrote: > > > I have a multihomed machine that I would like to run the Python imaplib's > > > IMAP4 client on. I would like to be > > > able to specify which interface the underlying socket will bind to as its > > > source address. How could I best do > > > this?

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Chris Angelico
On Wed, Nov 21, 2012 at 9:00 AM, wrote: > On Tuesday, November 20, 2012 1:48:46 PM UTC-8, Chris Angelico wrote: >> On Wed, Nov 21, 2012 at 8:14 AM, wrote: >> >> > I have a multihomed machine that I would like to run the Python imaplib's >> > IMAP4 client on. I would like to be able to specify

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread brintoul
lp... > > > > You are quite welcome. :) > > > > On a less flippant note, maybe some links would help you > > get started. > > > > http://www.doughellmann.com/PyMOTW/imaplib/ > > http://yuji.wordpress.com/2011/06/22/python-imaplib-imap-exampl

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread brintoul
On Tuesday, November 20, 2012 1:48:46 PM UTC-8, Chris Angelico wrote: > On Wed, Nov 21, 2012 at 8:14 AM, wrote: > > > Hello: > > > > > > I have a multihomed machine that I would like to run the Python imaplib's > > IMAP4 client on. I would like to be able to specify which interface the > >

RE: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Prasad, Ramit
uld I best do > this? One assumes by programming. > > Thanks for any help... You are quite welcome. :) On a less flippant note, maybe some links would help you get started. http://www.doughellmann.com/PyMOTW/imaplib/ http://yuji.wordpress.com/2011/06/22/python-imaplib-imap-example-wi

Re: Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread Chris Angelico
On Wed, Nov 21, 2012 at 8:14 AM, wrote: > Hello: > > I have a multihomed machine that I would like to run the Python imaplib's > IMAP4 client on. I would like to be able to specify which interface the > underlying socket will bind to as its source address. How could I best do > this? You're

Choosing Source Address to Bind Socket to in IMAP Client

2012-11-20 Thread brintoul
Hello: I have a multihomed machine that I would like to run the Python imaplib's IMAP4 client on. I would like to be able to specify which interface the underlying socket will bind to as its source address. How could I best do this? Thanks for any help... -- http://mail.python.org/mailman/li

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Dan Stromberg
nge server via SMTP and IMAP from my > iPhone using SSL and without using a VPN. So I would expect to be able > to do the same from my computer using Python. > > However, the following hangs and times out on my computer when I'm not > connected to the VPN: > > >

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Dan Stromberg
; Hi, > > I'm able to connect to an Exchange server via SMTP and IMAP from my > iPhone using SSL and without using a VPN. So I would expect to be able > to do the same from my computer using Python. > > However, the following hangs and times out on my computer when I'm n

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Christian Heimes
y won't > instantiate the SMTP/SMTP_SSL/IMAP4/IMAP4_SSL objects at all and will > hang forever if the VPN is turned off. Are you trying to connect to an Exchange server? Several Exchange mobile clients aren't using IMAP and SMTP but EAS over HTTPS. I have the same setup at work. The SM

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-11 Thread Julien Phalip
at all and will hang forever if the VPN is turned off. I'm really at loss there :) Julien On Apr 2, 2012, at 6:57 PM, Michael Hrivnak wrote: > Your phone may be using TLS on the normal IMAP port (143). Or, are > you sure your phone is using IMAP and not active sync? > > Michae

Re: Cannot connect to IMAP server in Python 3.2

2012-04-06 Thread Keith Medcalf
ep in connecting to the SSL socket is to do a TLS dance, then initiate the IMAP protocol by sending the greeting. If you connect with a non-SSL initiator to an SSL endpoint, you will get a timeout. If you connect with an SSL initiator to a non-SSL endpoint, you will timeout. It is not the con

Re: Cannot connect to IMAP server in Python 3.2

2012-04-05 Thread Steve Howell
On Apr 5, 5:25 am, Steven D'Aprano wrote: > On Thu, 05 Apr 2012 12:16:09 +, Steven D'Aprano wrote: > > On Thu, 05 Apr 2012 00:21:31 -0700, Steve Howell wrote: > >> Why are you changing the invocation between versions of Python? > > > Because imaplib.IMAP4_SSL apparently no longer exists in Pyt

Re: Cannot connect to IMAP server in Python 3.2

2012-04-05 Thread Damien Wyart
* Steven D'Aprano in comp.lang.python: > IMAP4_SSL is documented as existing in Python 3. And when I run Python > 3.2 on a Centos machine, instead of Debian, it includes IMAP4_SSL which > works fine. > So there's something screwy going on here. Why does my Python 3.2 on > Debian not include IMA

Re: Cannot connect to IMAP server in Python 3.2

2012-04-05 Thread Steven D'Aprano
On Thu, 05 Apr 2012 12:16:09 +, Steven D'Aprano wrote: > On Thu, 05 Apr 2012 00:21:31 -0700, Steve Howell wrote: >> Why are you changing the invocation between versions of Python? > > Because imaplib.IMAP4_SSL apparently no longer exists in Python 3. > server = imaplib.IMAP4_SSL('x

Re: Cannot connect to IMAP server in Python 3.2

2012-04-05 Thread Steven D'Aprano
On Thu, 05 Apr 2012 00:21:31 -0700, Steve Howell wrote: > I'm not suggesting that you debug the standard library because I think > the library itself is broken. I'm suggesting that using the source code > that's freely available to you can help you have some insight on what's > going wrong. > > D

Re: Cannot connect to IMAP server in Python 3.2

2012-04-05 Thread Steve Howell
On Apr 5, 12:09 am, Steven D'Aprano wrote: > On Wed, 04 Apr 2012 22:13:55 -0700, Steve Howell wrote: > > On Apr 4, 9:49 pm, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote: > >> I can connect to an IMAP server using Python 2.6: > > >> st

Re: Cannot connect to IMAP server in Python 3.2

2012-04-05 Thread Steve Howell
On Apr 5, 12:09 am, Steven D'Aprano wrote: > On Wed, 04 Apr 2012 22:13:55 -0700, Steve Howell wrote: > > On Apr 4, 9:49 pm, Steven D'Aprano > +comp.lang.pyt...@pearwood.info> wrote: > >> I can connect to an IMAP server using Python 2.6: > > >> st

Re: Cannot connect to IMAP server in Python 3.2

2012-04-05 Thread Steven D'Aprano
On Wed, 04 Apr 2012 22:13:55 -0700, Steve Howell wrote: > On Apr 4, 9:49 pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: >> I can connect to an IMAP server using Python 2.6: >> >> steve@runes:~$ python2.6 >> Python 2.6.6 (r266:84292, Dec 27 20

Re: Cannot connect to IMAP server in Python 3.2

2012-04-04 Thread Steve Howell
On Apr 4, 9:49 pm, Steven D'Aprano wrote: > I can connect to an IMAP server using Python 2.6: > > steve@runes:~$ python2.6 > Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) > [GCC 4.4.5] on linux2 > Type "help", "copyright", "credits" or

Re: Cannot connect to IMAP server in Python 3.2

2012-04-04 Thread Rob Williscroft
Steven D'Aprano wrote in news:4f7d2475$0$3$c3e8...@news.astraweb.com in gmane.comp.python.general: > I can connect to an IMAP server using Python 2.6: > > steve@runes:~$ python2.6 > Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) >>>> server = imaplib.IMAP

Cannot connect to IMAP server in Python 3.2

2012-04-04 Thread Steven D'Aprano
I can connect to an IMAP server using Python 2.6: steve@runes:~$ python2.6 Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import imaplib >>

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Michael Hrivnak
Your phone may be using TLS on the normal IMAP port (143). Or, are you sure your phone is using IMAP and not active sync? Michael On Mon, Apr 2, 2012 at 6:25 PM, Julien wrote: > Hi Michael, > > Thanks for your reply. I did try port 993. I know that port generally > works for

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Julien
Hi Michael, Thanks for your reply. I did try port 993. I know that port generally works for me, as I can access the Gmail IMAP/SMTP server using SSL. It also works for that other Exchange server but only when the VPN is turned on. Somehow my iPhone works fine without a VPN, as long as it uses

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Michael Hrivnak
That method uses the default port 993. Can you connect to that port at all from your computer? For example, try using a telnet client. Michael On Sat, Mar 31, 2012 at 1:39 AM, Julien wrote: > Hi, > > I'm able to connect to an Exchange server via SMTP and IMAP from my > iPh

Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Julien
Hi, I'm able to connect to an Exchange server via SMTP and IMAP from my iPhone using SSL and without using a VPN. So I would expect to be able to do the same from my computer using Python. However, the following hangs and times out on my computer when I'm not connected to the VPN:

Check email header for RFC 822 standard and match emails between imap servers.

2011-08-18 Thread Vincent Davis
The sort story, I have been attempting to use the Google Migration assistant to migrate emails from one google account to another, about 80,000 emails. I have two problems. 1. Many emails that fail to transfer because of errors like "Invalid RFC 822 Message: Date header "Mon Feb 05 22:07:16 2007" i

Re: Download an attachment from an IMAP email

2011-02-04 Thread Vincent Davis
hgc On Thu, Feb 3, 2011 at 6:52 PM, Kushal Kumaran < kushal.kumaran+pyt...@gmail.com > wrote: > On Fri, Feb 4, 2011 at 3:44 AM, Vincent Davis > wrote: > > I have a few emails I am trying to download from my google account. I > seem > > to be getting the message but each of these messages have a

Re: Download an attachment from an IMAP email

2011-02-03 Thread Kushal Kumaran
On Fri, Feb 4, 2011 at 3:44 AM, Vincent Davis wrote: > I have a few emails I am trying to download from my google account. I seem > to be getting the message but each of these messages have an attachment. I > don't understand what I ned to do to get and save the attachment to a local > file. > Her

Download an attachment from an IMAP email

2011-02-03 Thread Vincent Davis
I have a few emails I am trying to download from my google account. I seem to be getting the message but each of these messages have an attachment. I don't understand what I ned to do to get and save the attachment to a local file. Here is what I have so far. M = imaplib.IMAP4_SSL(IMAP_SERVER, IMAP

Re: IMAP support

2010-11-30 Thread pakalk
On 30 Lis, 22:26, Adam Tauno Williams wrote: > On Tue, 2010-11-30 at 13:03 -0800, pakalk wrote: > > Please, give me an example of raw query to IMAP server? > > <http://www.devshed.com/c/a/Python/Python-Email-Libraries-part-2-IMAP/2/> > > I'm not certain what yo

Re: IMAP support

2010-11-30 Thread Adam Tauno Williams
On Tue, 2010-11-30 at 13:03 -0800, pakalk wrote: > Please, give me an example of raw query to IMAP server? <http://www.devshed.com/c/a/Python/Python-Email-Libraries-part-2-IMAP/2/> I'm not certain what you mean by "raw query". > And why do you focus on "N

Re: IMAP support

2010-11-30 Thread pakalk
Please, give me an example of raw query to IMAP server? And why do you focus on "Nevermind is so ekhm... nevermind... "?? Cannot you just help? -- http://mail.python.org/mailman/listinfo/python-list

Re: IMAP support

2010-10-03 Thread Grant Edwards
On 2010-10-01, pakalk wrote: > Can anyone help me find GOOD IMAP library for python? Yes. > Imaplib is.. ekhm... nevermind... Is there any good library? Yes, there is another one that's easier to use and a bit more high-level, and more... akhm... nevermind. -- Grant

Re: IMAP support

2010-10-03 Thread John Bokma
pakalk writes: > Hello, > > Can anyone help me find GOOD IMAP library for python? Imaplib is.. > ekhm... nevermind... Is there any good library? Instead of pissing on something it helps to actually state what's missing from it. Or give a list of what you're looking for

Re: IMAP support

2010-10-03 Thread Tim Roberts
pakalk wrote: > >Can anyone help me find GOOD IMAP library for python? Imaplib is.. >ekhm... nevermind... Is there any good library? What do you expect it to do? Imaplib is designed to help you access IMAP stores, and it does that well enough. But it's not a mail reader. --

IMAP support

2010-10-01 Thread pakalk
Hello, Can anyone help me find GOOD IMAP library for python? Imaplib is.. ekhm... nevermind... Is there any good library? -- http://mail.python.org/mailman/listinfo/python-list

Re: IMAP Problems

2010-07-04 Thread Paul Jefferson
Brilliant! Thanks guys I will have to have a play around later On 4 July 2010 04:12, Grant Edwards wrote: > > > I'm trying to write a simple script which displays the basic details > > of a person's mailbox. My problem is that it causes all the messages > > to be marked as read on the server, >

Re: IMAP Problems

2010-07-03 Thread Grant Edwards
> I'm trying to write a simple script which displays the basic details > of a person's mailbox. My problem is that it causes all the messages > to be marked as read on the server, > > code, mailboxen= server.list() > print mailboxen > # if it's called INBOX, then… > server.select("INBOX") Yo

Re: IMAP Problems

2010-07-03 Thread MRAB
Paul Jefferson wrote: Hi, I'm trying to write a simple script which displays the basic details of a person's mailbox. My problem is that it causes all the messages to be marked as read on the server, which is not what I'm after, and I also can't get the imap.sort command to work properly (curr

IMAP Problems

2010-07-03 Thread Paul Jefferson
Hi, I'm trying to write a simple script which displays the basic details of a person's mailbox. My problem is that it causes all the messages to be marked as read on the server, which is not what I'm after, and I also can't get the imap.sort command to work properly (currently commented out as I re

IMAP Problems

2010-07-02 Thread Paul
Hi, I'm trying to write a simple script which displays the basic details of a person's mailbox. My problem is that it causes all the messages to be marked as read on the server, which is not what I'm after, and I also can't get the imap.sort command to work properly (currently commented out as I re

Re: How to send a non-standard IMAP command?

2010-06-25 Thread Xianwen Chen
etail. Free Yahoo! mail accounts can be accsessed via > > IMAP protocal, however, a non-standard shake hand code is needed > > before log in [1]: > > > ID ("GUID" "1") > > > . This is what I'm now working for. I tried: > > > IMAP4.xa

Re: How to send a non-standard IMAP command?

2010-06-25 Thread Xianwen Chen
be much more convenient. Actually, I have been using a modified version of Thunderbird [1] to access Yahoo! Mail IMAP server for months. The reason of using Python to access the mail server is to have less dependency on other software. Now I don't need Thunderbird anymore. Best regards, Xianwen

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Xianwen Chen
he detail. Free Yahoo! mail accounts can be accsessed via >> IMAP protocal, however, a non-standard shake hand code is needed >> before log in [1]: >> >> ID ("GUID" "1") >> >> . This is what I'm now working for. I tried: >> >&

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Tim Chase
On 06/24/2010 04:47 AM, Xianwen Chen wrote: Thanks a lot for your reply! I thought it would be simpler if the problem was presented in a brief way. Unfortunately, not for this case. Here is the detail. Free Yahoo! mail accounts can be accsessed via IMAP protocal, however, a non-standard shake

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Michael Torrie
On 06/24/2010 03:47 AM, Xianwen Chen wrote: > , but I got error messages. Any hint please? Why not just use a proxy server: http://sourceforge.net/projects/imapidproxy/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Michael Torrie
On 06/24/2010 03:47 AM, Xianwen Chen wrote: > . This is what I'm now working for. I tried: > > IMAP4.xatom('','ID ("GUID" "1")','',) > > and > > dest_srv.xatom('ID ("GUID" "1")') > > , but I got error messages. Any hint please? What error messages? -- http://mail.python.org/mailman/listinfo/p

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Xianwen Chen
On 6/24/10, Tim Chase wrote: > On 06/23/2010 05:22 PM, Xianwen Chen wrote: >> I need to send one line of commands to an IMAP server. The commands >> are not standard IMAP protocols, hence it's not specified in >> http://docs.python.org/library/imaplib.html. > >

Re: How to send a non-standard IMAP command?

2010-06-23 Thread Tim Chase
On 06/23/2010 05:22 PM, Xianwen Chen wrote: I need to send one line of commands to an IMAP server. The commands are not standard IMAP protocols, hence it's not specified in http://docs.python.org/library/imaplib.html. Sounds like you want to use the imaplib's IMAP4.xatom() to send

How to send a non-standard IMAP command?

2010-06-23 Thread Xianwen Chen
Dear Pythoners, I need to send one line of commands to an IMAP server. The commands are not standard IMAP protocols, hence it's not specified in http://docs.python.org/library/imaplib.html. Can you please give me a hint? Best regards, Xianwen -- http://mail.python.org/mailman/listinfo/p

Re: IMAP mail filters tool

2010-03-07 Thread python
Ken, Check out Zed Shaw's very cool Lamson project. http://lamsonproject.org/ Malcolm - Original message - From: "Ken Seehart" To: python-list@python.org Date: Thu, 04 Mar 2010 21:33:26 -0800 Subject: IMAP mail filters tool I'm thinking of possibly making a simple

Re: imap vs map

2010-03-05 Thread Arnaud Delobelle
mk writes: > Hello everyone, > > I re-wrote more "slowly" an example at the end of > http://wordaligned.org/articles/essential-python-reading-list > > > This example finds anagrams in the text file. > > ==== > from itertools import groupby, imap > from

imap vs map

2010-03-05 Thread mk
Hello everyone, I re-wrote more "slowly" an example at the end of http://wordaligned.org/articles/essential-python-reading-list This example finds anagrams in the text file. from itertools import groupby, imap from operator import itemgetter from string import ascii

IMAP mail filters tool

2010-03-04 Thread Ken Seehart
I'm thinking of possibly making a simple client-agnostic tool for filtering and processing IMAP email. I'm a Thunderbird user, but I'm interested in a tool that is not client software specific. So I am is checking for prior art. Does anyone know of a filter tool with most of

[OT] Re: IMAP: How to implement GMail-like threaded conversations view

2008-12-20 Thread Diez B. Roggisch
Anything else is madness. And the fact the Outlook doesn't do proper referral fields just infuriates me. Sigh. I'm overjoyed about the opaque winmail.dat attachments I get. Which seem to appear randomly from the same sender sending the same stuff (like a meeting invitation) to me - depend

Re: IMAP: How to implement GMail-like threaded conversations view

2008-12-19 Thread Grant Edwards
ing Twisted's IMAP4 client. It's somewhat easier to > use than Python's imaplib because it does much more parsing of IMAP4's > complex syntax for you. It will also be easier to do IMAP4 and HTTP > simultaneously if you're using Twisted. Anything that helps wit

Re: IMAP: How to implement GMail-like threaded conversations view

2008-12-19 Thread Chris Rebert
On Fri, Dec 19, 2008 at 11:54 AM, Michael Torrie wrote: > Martin wrote: >> Currently I am trying to get used to Python's imaplib and email >> modules. >> I'like to create a webmail client simmilar to GMail. > > This is off-topic, but why on earth would you want to emulate Gmail's > conversation vi

Re: IMAP: How to implement GMail-like threaded conversations view

2008-12-19 Thread Michael Torrie
Martin wrote: > Currently I am trying to get used to Python's imaplib and email > modules. > I'like to create a webmail client simmilar to GMail. This is off-topic, but why on earth would you want to emulate Gmail's conversation views? It's horrible and a very broken way of viewing e-mail threads

Re: IMAP: How to implement GMail-like threaded conversations view

2008-12-19 Thread Jean-Paul Calderone
On Fri, 19 Dec 2008 08:47:18 -0800 (PST), Martin wrote: Currently I am trying to get used to Python's imaplib and email modules. I'like to create a webmail client simmilar to GMail. I'd suggest using Twisted's IMAP4 client. It's somewhat easier to use than Python's imaplib because it does muc

IMAP: How to implement GMail-like threaded conversations view

2008-12-19 Thread Martin
e world. I guess each mail client and each language uses different ones, right? c) Does anyone know good resources to gain more knowledge about imap / mailing? Currently I am using those sites as a reference: http://www.devshed.com/c/a/Python/Python-Email-Libraries-part-2-IMAP/ (as a start *g)

IMAP

2008-08-15 Thread [EMAIL PROTECTED]
Hi, I am new to python and I need to use it to implement for my dissertation. The idea behind is used to send the message to mail server and look for it's respond time (Microseconds measurement). How to write the response time and throughput in Imap? Thanks ahead of time. -- http://mail.pytho

Re: Gmail imap search does not get all messages.

2008-02-02 Thread Bart Kastermans
Quick update on the below: the issue has disappeared by itself. I did not get to working on this much since sending my last message. Now that I am looking at this the issue has disappeared. On Jan 29, 8:23 pm, Bart Kastermans <[EMAIL PROTECTED]> wrote: > I am trying to use imaplib with gmail.

Gmail imap search does not get all messages.

2008-01-29 Thread Bart Kastermans
I am trying to use imaplib with gmail. I am finding however that with the gmail server imaplib.search does not give the correct answer. See the below traces (k is a server a my department, i is gmail). k has 6 messages in the INBOX i has 3 messages in the INBOX However i.search(None, "ALL") only

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 2:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 8, 1:52 pm, Jason <[EMAIL PROTECTED]> wrote: > > > > > On Nov 8, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > > > > I'

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 1:52 pm, Jason <[EMAIL PROTECTED]> wrote: > On Nov 8, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I'm trying to get a list of messages from GMAIL using it's new IMAP > > access. > > > So far

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 1:52 pm, Jason <[EMAIL PROTECTED]> wrote: > On Nov 8, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I'm trying to get a list of messages from GMAIL using it's new IMAP > > access. > > > So far

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread Jason
On Nov 8, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm trying to get a list of messages from GMAIL using it's new IMAP > access. > > So far I've tried running this command but it just hangs. Any ideas? > > >>> import

Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running this command but it just hangs. Any ideas? >>> import imaplib >>> M=imaplib.IMAP4('imap.gmail.com',993) I figured that's the first line to r

Re: Python IMAP web-access

2007-08-02 Thread Laurent Pointal
Damjan a écrit : > Is there some project that implements web access to an IMAP store? > > Maybe something AJAXy like http://roundcube.net/?? I dont know if this fill your need, but in my Python bookmarks, for webmail I have a reference to NiMail (http://www.nimail.org/). A+ Laurent.

Python IMAP web-access

2007-08-01 Thread Damjan
Is there some project that implements web access to an IMAP store? Maybe something AJAXy like http://roundcube.net/?? -- damjan -- http://mail.python.org/mailman/listinfo/python-list

Re: IMAP library

2007-06-28 Thread Jean-Paul Calderone
On Thu, 28 Jun 2007 18:44:02 -0300, Bruno Barberi Gnecco <[EMAIL PROTECTED]> wrote: > It seems that this question has been asked a few times in this >group before, but sometime has passed since the last post and maybe there's >something new. I'm looking for a high l

IMAP library

2007-06-28 Thread Bruno Barberi Gnecco
It seems that this question has been asked a few times in this group before, but sometime has passed since the last post and maybe there's something new. I'm looking for a high level IMAP library--I know of imaplib, but it's awfully documented and I was hoping to avoid rea

Re: IMAP SEARCH Error

2007-01-17 Thread Thomas Guettler
Roopesh wrote: > I am using the imaplib to fetch mails. There is an error thrown in the > search function, which I am not able to comprehend. I had difficulties with the imaplib, too. It is very low level. You need to know some parts of the IMAP protocol. I solved my problems by checkin

Re: IMAP SEARCH Error

2007-01-17 Thread jean-michel bain-cornu
> imaplib.abort: command: SEARCH => unexpected response: '*' > > Can anyone tell me why this happens ? It looks like a server problem. What kind of server are you using ? Exchange, Cyrus ? Did you try with two different Imap servers ? If it is a unix server, did you have a

IMAP SEARCH Error

2007-01-17 Thread Roopesh
I am using the imaplib to fetch mails. There is an error thrown in the search function, which I am not able to comprehend. My program is as follows : import imaplib M = imaplib.IMAP4("10.1.1.1",1143) M.login("roopesh", "roopesh12") type, data = M.select("INBOX", 1) print typ

Re: Newbie imap lib question

2007-01-13 Thread Binky
27;s an example >>> M.response('RECENT') ('RECENT', ['0']) If all else faile, you may want to examine the imap library code to see how it parses the SELECT response data. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie imap lib question

2007-01-12 Thread Roel Schroeven
jrpfinch schreef: > I have three messages in my inbox. Why does messageCount = > gServer.select('INBOX') not just return OK and 3. See below for > examples - seems to be completely random how many threes it returns. > The documentation for imaplib seems sparse. Does anybody have any good > links

Re: Newbie imap lib question

2007-01-12 Thread jrpfinch
All I have to go on is the RFC2060 standard which says: 7.3.1. EXISTS Response Contents: none The EXISTS response reports the number of messages in the mailbox. This response occurs as a result of a SELECT or EXAMINE command, and if the size of the mailbox changes (e.g. n

Newbie imap lib question

2007-01-12 Thread jrpfinch
I have three messages in my inbox. Why does messageCount = gServer.select('INBOX') not just return OK and 3. See below for examples - seems to be completely random how many threes it returns. The documentation for imaplib seems sparse. Does anybody have any good links? Many thanks, Jon message

Set header from IMAP

2006-11-13 Thread Laszlo Nagy
Dear List, I'm trying to figure out, how to change the header of an e-mail that is accessed by an IMAP object. There is some code below (not a complete program). The key function is the filter_mail function. It should move/delete/change/export messages, based on their header. For expo

Re: MemoryError - IMAP retrieve self._sock.recv(recv_size)

2006-10-18 Thread Fredrik Lundh
Stephen G wrote: > I am hesitant to make any changes to the python libraries as > I need to distribute these scripts with a standard Python install. well, you could at least check if the suggestions in that thread makes the problem go away... (if so, shipping a patched version with your progra

Re: MemoryError - IMAP retrieve self._sock.recv(recv_size)

2006-10-18 Thread Stephen G
Fredrik, Thanks for the response. I did see that, but having been dated 2005 I thought that it might have been patched. I am also sometimes getting the same problem with the urllib.py module. T his may have to do with the interaction between Python and the mobile optimization client that I

Re: MemoryError - IMAP retrieve self._sock.recv(recv_size)

2006-10-18 Thread Fredrik Lundh
"Stephen G" <[EMAIL PROTECTED]> wrote: > I get many exceptions when using the IMAP downloads. This happens > randomly; sometimes the file downloads OK, and other times no. > File "C:\Python25\lib\socket.py", line 308, in read >data = self._sock.recv(r

MemoryError - IMAP retrieve self._sock.recv(recv_size)

2006-10-18 Thread Stephen G
Hi there. I have been receiving MemoryErrors using the Windows version of Python 2.5. The script I have written times the sending and the reception of emails with various attachments. I get many exceptions when using the IMAP downloads. This happens randomly; sometimes the file downloads OK

Re: imap folder scanner

2006-03-25 Thread Sebastjan Trepca
.append(sender[sender.find('From:')+5:].strip())  sender = ""   else:  sender+=itemprint parsed_sendersSebastjan On 3/25/06, Kun <[EMAIL PROTECTED]> wrote: Marco Carvalho wrote:> On 3/24/06, Sebastjan Trepca <[EMAIL PROTECTED]> wrote:>>> m.select(

Re: imap folder scanner

2006-03-24 Thread Kun
Marco Carvalho wrote: > On 3/24/06, Sebastjan Trepca <[EMAIL PROTECTED]> wrote: > >> m.select('myfolder') > > Some attention is required here to retrieve subfolders. > Some imap servers like Cyrus and Courier uses "INBOX.subfolder" to &

Re: imap folder scanner

2006-03-24 Thread Marco Carvalho
On 3/24/06, Sebastjan Trepca <[EMAIL PROTECTED]> wrote: > m.select('myfolder') Some attention is required here to retrieve subfolders. Some imap servers like Cyrus and Courier uses "INBOX.subfolder" to access subfolders. -- Marco Carvalho (macs) | marcoacarvalho(

Re: imap folder scanner

2006-03-24 Thread Kun
Sebastjan Trepca wrote: > A very simple example... > > import imaplib > m = imap.IMAP4() > m.login(username,password) > m.select('myfolder') > status, data = m.search(None,'(SUBJECT "BIKES")') > assert status=='OK', "Error. Message: %s"%data > data = data[0] #you get your results in a list and sea

  1   2   >