[issue19784] No SSL match_hostname() in poplib

2013-12-02 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19784 ___

[issue19784] No SSL match_hostname() in poplib

2013-11-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email nosy: +barry, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19784 ___

[issue19784] No SSL match_hostname() in poplib

2013-11-25 Thread Christian Heimes
New submission from Christian Heimes: match_hostname patch for poplib (see #19509). The patch doesn't have tests yet. -- components: Library (Lib) files: check_poplib.patch keywords: patch messages: 204437 nosy: christian.heimes priority: normal severity: normal stage: patch review

[issue19784] No SSL match_hostname() in poplib

2013-11-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19784 ___

[issue16041] poplib: unlimited readline() from connection

2013-10-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68029048c9c6 by Georg Brandl in branch '3.3': Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to http://hg.python.org/cpython/rev/68029048c9c6 -- ___ Python tracker rep

[issue16041] poplib: unlimited readline() from connection

2013-10-27 Thread Georg Brandl
Georg Brandl added the comment: Also merged to default. -- versions: -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue16041] poplib: unlimited readline() from connection

2013-10-24 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Here's a max line lenght fix for 3.2 (applies on 3.4 too). I wonder if _getlongresp should have some max length detection too for max length of a multiline response -- Added file: http://bugs.python.org/file32335/issue16041_py32.patch

[issue16041] poplib: unlimited readline() from connection

2013-10-18 Thread Larry Hastings
Larry Hastings added the comment: Ping. Please fix before beta 1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___ ___ Python-bugs-list

[issue16041] poplib: unlimited readline() from connection

2013-09-30 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Added a test for SSL, if SSL is available -- Added file: http://bugs.python.org/file31923/issue16041_py26_with_ssl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041

[issue16041] poplib: unlimited readline() from connection

2013-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7214e3324a45 by Barry Warsaw in branch '2.6': - Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to http://hg.python.org/cpython/rev/7214e3324a45 -- nosy: +python-dev ___ Python

[issue16041] poplib: unlimited readline() from connection

2013-09-30 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___ ___

[issue16041] poplib: unlimited readline() from connection

2013-09-30 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Sep 30, 2013, at 08:41 PM, Arfrever Frehtes Taifersar Arahesis wrote: Arfrever Frehtes Taifersar Arahesis added the comment: New changeset 7214e3324a45 by Barry Warsaw in branch '2.6': - Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths

[issue16041] poplib: unlimited readline() from connection

2013-09-30 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: New changeset 7214e3324a45 by Barry Warsaw in branch '2.6': - Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to http://hg.python.org/cpython/rev/7214e3324a45 ... --- a/Misc/NEWS +++ b/Misc/NEWS ... +- Issue

[issue16041] poplib: unlimited readline() from connection

2013-09-29 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Attached a patch for 2.6. Due to how tests are in 2.6, this adds one more test case with evil server, which basically just returns too long lines. -- Added file: http://bugs.python.org/file31913/issue16041_py26.patch

[issue16041] poplib: unlimited readline() from connection

2013-09-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Looks good, although only the POP3 exception is actually tested. The POP3_SSL exception isn't tested. Any chance you could add a test for that (obviously, only if `import ssl` succeeds)? -- ___ Python tracker

[issue16041] poplib: unlimited readline() from connection

2013-09-15 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +barry priority: critical - release blocker versions: +Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041

[issue16041] poplib: unlimited readline() from connection

2013-03-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Not blocking 2.7.4 as discussed on mailing list. -- priority: release blocker - critical ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue16041] poplib: unlimited readline() from connection

2013-02-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Added a functionality that raises error_proto('line too long') if we read over _MAXLINE characters. Defaults _MAXLINE to 2048. The patch is written on top of 2.7 -- keywords: +patch nosy: +nailor Added file:

[issue16041] poplib: unlimited readline() from connection

2013-02-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue16041] poplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: RFC 1939 says: Responses in the POP3 consist of a status indicator and a keyword possibly followed by additional information. All responses are terminated by a CRLF pair. Responses may be up to 512 characters long, including the terminating

[issue16041] poplib: unlimited readline() from connection

2013-02-15 Thread Christian Heimes
Christian Heimes added the comment: CVE-2013-1752 Unbound readline() DoS vulnerabilities in Python stdlib -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue16041] poplib: unlimited readline() from connection

2013-02-04 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +benjamin.peterson, georg.brandl, larry priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___

[issue16041] poplib: unlimited readline() from connection

2013-01-21 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___ ___

[issue16041] poplib: unlimited readline() from connection

2013-01-20 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- assignee: - christian.heimes priority: normal - critical stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041

Re: Using poplib to parse headers - Thank You All!

2012-12-10 Thread asklucas
Hello Jean-Claude! Thank you for your post, it helped me a lot! I'm not too new to Python but still struggling to make use of that great language's features. I haven't tested it but since you are interested in syntactic subtleties, I think you can save one iterator (k): for j in

[issue16041] poplib: unlimited readline() from connection

2012-09-25 Thread Christian Heimes
New submission from Christian Heimes: This bug is similar to #16037 and a modified copy of #16038. The poplib module doesn't limit the amount of read data in its call to readline(). An erroneous or malicious POP3 server can trick the poplib module to consume large amounts of memory

[issue12706] timeout sentinel in ftplib and poplib documentation

2011-08-12 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- components: +Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12706 ___ ___

[issue12706] timeout sentinel in ftplib and poplib

2011-08-07 Thread Senthil Kumaran
New submission from Senthil Kumaran sent...@uthcode.com: - ftplib and poplib, has them as timeout=None, while they default to socket._GLOBAL_DEFAULT_TIMEOUT object

[issue12706] timeout sentinel in ftplib and poplib documentation

2011-08-07 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- title: timeout sentinel in ftplib and poplib - timeout sentinel in ftplib and poplib documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12706

[issue11291] poplib suppresses exception on QUIT

2011-02-25 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Fixed in r88620. -- components: +Library (Lib) resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11291

[issue11291] poplib suppresses exception on QUIT

2011-02-22 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: Unlike ftplib, smtplib and probably others, poplib suppresses error_proto exceptions on quit(). I'm not sure in what circumstances a POP3 server can return a negative response on QUIT but if this happens poplib should raise an exception

[issue8807] poplib should support SSL contexts

2010-08-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- assignee: - giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8807 ___ ___

[issue8807] poplib should support SSL contexts

2010-08-17 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Committed in r84144 including context being the last constructor argument. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8807] poplib should support SSL contexts

2010-05-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There's the problem mentioned by Ezio: it breaks compatibility if someone passed a timeout to POP3_SSL by position (rather than by name). -- ___ Python tracker rep...@bugs.python.org

[issue8807] poplib should support SSL contexts

2010-05-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Patch in attachment. The same approach adopted for ftplib (issue 8806) was used. -- keywords: +patch Added file: http://bugs.python.org/file17469/poplib.patch ___ Python tracker

[issue8807] poplib should support SSL contexts

2010-05-24 Thread Antoine Pitrou
constructor should allow passing an SSL context object instead of a key/cert pair. -- components: Library (Lib) messages: 106367 nosy: giampaolo.rodola, pitrou priority: normal severity: normal status: open title: poplib should support SSL contexts type: feature request versions: Python 3.2

[issue8807] poplib should support SSL contexts

2010-05-24 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8807 ___ ___ Python-bugs-list

no SPA in poplib?

2009-12-09 Thread Gabriel Rossetti
Hello, I couldn't find SPA in poplib, does anyone know of an alternative implementation? Thanks, Gabriel -- Arimaz SA Ingénieur en Informatique Av. du 24 Janvier 11 Ateliers de la Ville de Renens, Atelier 5 1020 Renens, Switzerland www.arimaz.com www.mydeskfriend.com Mob: +41-(0)79-539-0069

poplib

2009-02-10 Thread Gabriel Rossetti
Hello, I am using poplib and I noticed that calls to top() don't return the msg info (2nd index in the returned list, e.g. email.top(1,0)[1]) in the same order, by that I mean the date could be email.top(1,0)[1][2] or email.top(1,0)[1][5], etc. Is there a reason for that other than that may

[issue3727] poplib module broken by str to unicode conversion

2008-11-05 Thread Christian Heimes
Christian Heimes [EMAIL PROTECTED] added the comment: Patch applied in r67109 -- nosy: +christian.heimes resolution: accepted - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727

[issue3727] poplib module broken by str to unicode conversion

2008-11-04 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11813/poplib-bytes-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727

[issue3727] poplib module broken by str to unicode conversion

2008-11-04 Thread STINNER Victor
comment). But well, as you want: a new patch re-indent the See the methods of the parent (...) line (331). Added file: http://bugs.python.org/file11940/poplib-bytes-3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727

[issue3727] poplib module broken by str to unicode conversion

2008-11-03 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: Benjamin's reviewed this and the only thing that jumps out at me is some funky indentation at about line 331. If you fix that, you can land this patch. -- keywords: -needs review nosy: +barry resolution: - accepted

[issue3727] poplib module broken by str to unicode conversion

2008-11-03 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___ ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-30 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I'm happy with Victor's patch. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___ ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-28 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Can anyone review my last patch (poplib-bytes-2.patch)? -- keywords: +needs review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I like this patch. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Oooops, I removed the message74562 from giampaolo.rodola, sorry: As for issue #3911 this is another module for which an actual test suite would be very necessary. ___ Python tracker [EMAIL PROTECTED]

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11782/poplib_unicode-5.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: After testing real world message, my patch using pure unicode doesn't work. The problem comes with message encoding with 8-bit encoding. If the email charset is different than POP3.encoding, the message in not decoded correctly.

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread STINNER Victor
. But poplib is not responsible to decode messages, just to download a message as bytes. Arguments (username (login), password, a message identifier) are unicode strings. For a message identifier, you can also use an integer (nothing new, it was already possible). I hope that apop() works

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: About apop(): the second argument is the user password, not a shared password which is the local variable timestamp read from welcome attribute. ___ Python tracker [EMAIL PROTECTED]

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11812/poplib-bytes.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727

[issue3727] poplib module broken by str to unicode conversion

2008-10-16 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: I forgot the new unit tests. New patch: - port python trunk unit tests Added file: http://bugs.python.org/file11813/poplib-bytes-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Here is a patch proposition: - a socket uses bytes - makefile() creates an unicode file using 'r' mode - default encoding ISO-8859-1 because I guess that most servers use this encoding, but you can change the encoding using encoding

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11775/poplib_unicode.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: Ooops, my previous patch was wrong (startswith = not startswith). I tested python trunk test for poplib: with minor changes, all tests are ok except tests using SSL. I get a select.error: (9, 'Bad file descriptor') from asyncore. So I tried

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: New version: - fix SSL: self.file contains the SSL socket and not the raw socket! - upgrade test_poplib.py from Python trunk poplib should be refactored to reuse the new IO library. But I don't know how to build a TextIO wrapper

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread Giampaolo Rodola'
Giampaolo Rodola' [EMAIL PROTECTED] added the comment: I haven't tried the patch but I think that encoding should be a class attribute as it is in ftplib and similar py3k network related modules. ___ Python tracker [EMAIL PROTECTED]

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: New version: - remove duplicate methods of POP3_SSL() - use makefile('r', encoding=self.encoding) to get a nice text wrapper with universal newline - remove newline conversion (done by TextIOWrapper) Finally my patch removes more code in

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11778/poplib_unicode-2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11780/poplib_unicode-3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: @giampaolo.rodola: Right, I also prefer encoding as a class attribute. So I wrote a new patch: - encoding is now a class attribute - continue SSL code factorization: SSL code is now around 10 lines instead of 70 lines! Added file:

[issue3727] poplib module broken by str to unicode conversion

2008-10-13 Thread STINNER Victor
Changes by STINNER Victor [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11781/poplib_unicode-4.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727 ___

[issue4088] Patch to implement a real poplib test suite

2008-10-11 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks for the patch; it's look good. Applied in r66878. -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4088

[issue3727] poplib module broken by str to unicode conversion

2008-10-09 Thread Giampaolo Rodola'
Giampaolo Rodola' [EMAIL PROTECTED] added the comment: As for issue #3911 this is another module for which an actual test suite would be very necessary. -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3727

[issue4088] Patch to implement a real poplib test suite

2008-10-09 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' [EMAIL PROTECTED]: poplib module is currently lacking a test suite which actually connects to a server and uses the POP3 class methods and facilities. Bug #3727, discovered just a bunch of days before the stable release of Python 3.0 is an example of how

[issue3727] poplib module broken by str to unicode conversionhttp://bugs.python.org/issue3727

2008-10-08 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- priority: - release blocker title: poplib module broken by str to unicode conversion - poplib module broken by str to unicode conversionhttp://bugs.python.org/issue3727 ___ Python tracker [EMAIL

[issue3727] poplib module broken by str to unicode conversion

2008-10-08 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- title: poplib module broken by str to unicode conversionhttp://bugs.python.org/issue3727 - poplib module broken by str to unicode conversion ___ Python tracker [EMAIL PROTECTED] http

[issue3727] poplib module broken by str to unicode conversion

2008-08-29 Thread Dmitry Vasiliev
New submission from Dmitry Vasiliev [EMAIL PROTECTED]: Example: from poplib import POP3 p = POP3(localhost) p.user(user) Traceback (most recent call last): File stdin, line 1, in module File /py3k/Lib/poplib.py, line 179, in user return self._shortcmd('USER %s' % user) File /py3k

Re: POP3 - Using poplib only shows the first few hundred messages in the mailbox

2008-07-29 Thread SteveC
-example.html import getpass,poplib M =poplib.POP3('localhost') M.user(getpass.getuser()) M.pass_(getpass.getpass()) numMessages = len(M.list()[1]) for i in range(numMessages):     for j in M.retr(i+1)[1]:         print j That is the above sample code from the python doc.  While

POP3 - Using poplib only shows the first few hundred messages in the mailbox

2008-07-25 Thread SteveC
Hello, I am trying to use POP3_SSL class of the poplib module to read email from my gmail account. I can connect just fine using the example here http://www.python.org/doc/lib/pop3-example.html import getpass, poplib M = poplib.POP3('localhost') M.user(getpass.getuser()) M.pass_

Re: POP3 - Using poplib only shows the first few hundred messages in the mailbox

2008-07-25 Thread Timothy Grant
On Fri, Jul 25, 2008 at 5:18 AM, SteveC [EMAIL PROTECTED] wrote: Hello, I am trying to use POP3_SSL class of the poplib module to read email from my gmail account. I can connect just fine using the example here http://www.python.org/doc/lib/pop3-example.html import getpass, poplib M

Re: POP3 - Using poplib only shows the first few hundred messages in the mailbox

2008-07-25 Thread MRAB
On Jul 25, 1:18 pm, SteveC [EMAIL PROTECTED] wrote: Hello, I am trying to use POP3_SSL class of the poplib module to read email from my gmail account.  I can connect just fine using the example herehttp://www.python.org/doc/lib/pop3-example.html import getpass, poplib M = poplib.POP3

poplib 100% cpu usage

2008-07-16 Thread Oli Schacher
Hi all I wrote a multithreaded script that polls mails from several pop/imap accounts. To fetch the messages I'm using the getmail classes ( http://pyropus.ca/software/getmail/ ) , those classes use the poplib for the real pop transaction. When I run my script for a few hours cpu usage

Re: Using poplib to parse headers - Thank You All!

2008-07-06 Thread Jean-Claude Neveu
, or if I did something the difficult way when Python has an easier or more efficient way to do it. I hope this will be useful for the archives. # import getpass, poplib, email # Set up the connection to the POP server popconnection = poplib.POP3('mail.blah.com') popconnection.user('user-name-goes

Re: poplib - retr() getting stuck

2008-06-26 Thread Roopesh
Thanks for the help. At present I have modified the poplib code as follows (In POP3 and POP3_SSL classes): Is it the correct way? def __init__(self, host, port = POP3_PORT): self.host = host self.port = port msg = getaddrinfo returns an empty list self.sock

Re: poplib - retr() getting stuck

2008-06-24 Thread Gabriel Genellina
En Fri, 20 Jun 2008 04:37:32 -0300, Roopesh [EMAIL PROTECTED] escribió: I am using poplib's retr() to fetch mails from my gmail account. It works fine, in some cases it gets stuck inside the retr() method and does not come out. Probably the server stopped responding. By default, sockets

poplib - retr() getting stuck

2008-06-20 Thread Roopesh
Hi, I am using poplib's retr() to fetch mails from my gmail account. It works fine, in some cases it gets stuck inside the retr() method and does not come out. From the logs I could find that when retr() is called, it stops executing further statements, nor does it throw an exceptions but simply

Re: Using poplib to parse headers

2008-05-28 Thread Tim Roberts
Jean-Claude Neveu [EMAIL PROTECTED] wrote: I am writing a Python program to check email using POP3. I've tried the sample code from python.org, and it works great. In other words, the code below successfully prints out my emails. import getpass, poplib, email M = poplib.POP3('mail.blah.com

[issue756914] SSL support for poplib

2008-01-30 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: no activity. Please do reopen if the offer still stands. -- nosy: +draghuram resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue756914

python and poplib

2006-08-17 Thread 叮叮当当
Hi, all. i have two question with poplib: 1. How to judge if a mail is or not a new mail ? 2. How Can i get the send-mailbox's mail? thanks . -- http://mail.python.org/mailman/listinfo/python-list

Re: poplib Q

2006-07-07 Thread SuperHik
Neil Hodgson wrote: SuperHik: I did ofc, but I noticed something strange... *my* socket module really doesn't have SSL object, even tho it's listed in the documentation... (not the online docs, but docs that came with my Python version) ffs how can that be! You are probably using

poplib Q

2006-07-06 Thread SuperHik
Hi! I want to connect to gmail but... It requires SSL so I worte: import poplib server = poplib.POP3_SSL('pop.gmail.com',995) Traceback (most recent call last): File interactive input, line 1, in ? File C:\Python24\lib\poplib.py, line 359, in __init__ self.sslobj = socket.ssl

Re: poplib Q

2006-07-06 Thread Paul McGuire
SuperHik [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! I want to connect to gmail but... It requires SSL so I worte: import poplib server = poplib.POP3_SSL('pop.gmail.com',995) Traceback (most recent call last): File interactive input, line 1, in ? File C

Re: poplib Q

2006-07-06 Thread SuperHik
Paul McGuire wrote: SuperHik [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! I want to connect to gmail but... It requires SSL so I worte: import poplib server = poplib.POP3_SSL('pop.gmail.com',995) Traceback (most recent call last): File interactive input, line 1

Re: poplib Q

2006-07-06 Thread Neil Hodgson
SuperHik: I did ofc, but I noticed something strange... *my* socket module really doesn't have SSL object, even tho it's listed in the documentation... (not the online docs, but docs that came with my Python version) ffs how can that be! You are probably using ActiveState's distribution

gmail/poplib: quickly detecting new mail

2006-07-01 Thread LJ
, LJ --- import poplib import time from email.Parser import Parser parser = Parser() server = poplib.POP3_SSL(pop.gmail.com, 995) print server.user(XXX-MY_EMAIL) print server.pass_(XXX-MY_PW) server.set_debuglevel(0) def getMsgCount(): # check message count by stat() and list() functions

Re: gmail/poplib: quickly detecting new mail

2006-07-01 Thread Jean-Paul Calderone
On 1 Jul 2006 08:29:51 -0700, LJ [EMAIL PROTECTED] wrote: Hello, I'm trying to monitor my gmail account to know when I have obtained a new email. It seems that once I have logged in, I should be able to call the stat() function repeatedly to see how many messages are in my inbox. The problem is

Re: gmail/poplib: quickly detecting new mail

2006-07-01 Thread Alex Martelli
LJ [EMAIL PROTECTED] wrote: ... 1. is this a standard behavior of pop protocol? (to give me the same results for any API call on a single login?) 2. OR is this a peculiarity of gmail Definitely POP3 standard behavior, as a simple reading of the relevant RFC will show (e.g.,

Popfile and Poplib - Can They Work Together?

2006-03-15 Thread Frank Churchill
Has anyone used poplib and popfile together? I've tried everything I can think of to specify SRVR in poplib: 127.0.0.1:8081 127.0.0.1,port=8081 localhost:8081 localhost,port=8081 and probably a few other things, but poplib can't see that it is looking at a mail server. popfile works fine

Is there anything better than impalib/poplib?

2005-09-07 Thread Alessandro Bottoni
Is there any module or interface that allow the programmer to access a imap4/pop3 server in a more pythonic (or Object Oriented) way than the usual imaplib and popolib? I mean: is there any module that would allow me to query the server for specific messages (and fetch them) in a way similar to

Re: Is there anything better than impalib/poplib?

2005-09-07 Thread Thomas Guettler
the server for specific messages (and fetch them) in a way similar to a OODB? AFAIK there is not a better module. There is getmail a python script (and module) which can download messages from a pop3 server. I use it instead of fetchmail. Maybe you like this more than poplib. HTH, Thomas

Re: Getting/Saving email attachments w/ poplib and email modules

2005-06-22 Thread Tim Williams
- Original Message - From: [EMAIL PROTECTED] Here's what I'm trying to do: I need to connect to a pop3 server, download all messages, and copy all of the attachments into a specific directory. The actual email message ## import email import poplib mimes = [image/tif

Re: Getting/Saving email attachments w/ poplib and email modules

2005-06-22 Thread Mike Meyer
the attachments from an email message, but most (if not all) of them take a file parameter. My question is this: How can i retrieve an email message via poplib and pass it to email.message_from_string()? A quick look at the poplib documentation shows the retr method, which gets a message by number

Getting/Saving email attachments w/ poplib and email modules

2005-06-21 Thread brettk
(if not all) of them take a file parameter. My question is this: How can i retrieve an email message via poplib and pass it to email.message_from_string()? This is essentially what i'm doing now, ## import email import poplib mimes = [image/tif,image/tiff,images/x-tif,image/x-tiff

<    1   2