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
___
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
___
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
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19784
___
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
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
___
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
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
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
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
Changes by Barry A. Warsaw ba...@python.org:
--
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16041
___
___
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
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
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
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
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
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
___
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:
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16041
___
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
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
___
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
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16041
___
___
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
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
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
Changes by Terry J. Reedy tjre...@udel.edu:
--
components: +Documentation
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12706
___
___
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
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
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
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
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
assignee: - giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8807
___
___
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
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
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
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
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +janssen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8807
___
___
Python-bugs-list
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
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
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
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
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
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
Changes by Benjamin Peterson [EMAIL PROTECTED]:
--
assignee: - benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3727
___
___
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I'm happy with Victor's patch.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3727
___
___
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
Benjamin Peterson [EMAIL PROTECTED] added the comment:
I like this patch.
--
nosy: +benjamin.peterson
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3727
___
Changes by STINNER Victor [EMAIL PROTECTED]:
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3727
___
___
Python-bugs-list mailing list
Unsubscribe:
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]
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
___
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.
. 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
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]
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
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
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
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
___
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
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
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]
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
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
___
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
___
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:
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
___
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
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
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
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
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
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
-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
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_
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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
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
,
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
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
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.,
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 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
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
- 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
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
(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
101 - 197 of 197 matches
Mail list logo