[issue13559] Use sendfile where possible in httplib

2011-12-11 Thread Kasun Herath
Changes by Kasun Herath kasun...@gmail.com: -- nosy: +kasun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13559 ___ ___ Python-bugs-list mailing

[issue12537] mailbox's _become_message is very fragile

2011-08-28 Thread Kasun Herath
Changes by Kasun Herath kasun...@gmail.com: -- nosy: +kasun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12537 ___ ___ Python-bugs-list mailing

[issue8809] smtplib should support SSL contexts

2011-05-18 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: Thanks Antoine -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___ ___ Python-bugs-list

[issue8809] smtplib should support SSL contexts

2011-05-14 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: I added a test to smtpnet and submitting a separate patch for it as my test_smtpnet.py file was old and could have had conflicts. I didn't use keys and certificates for the SSLContext as those would have to be shipped with the source. Looking

[issue8809] smtplib should support SSL contexts

2011-05-08 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: Yes, I would like to have a try at it -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809

[issue11882] test_imaplib failed on x86 ubuntu

2011-05-07 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: david, I'm not much familiar with c. Still trying to figure out how to do it -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11882

[issue11927] SMTP_SSL doesn't use port 465 by default

2011-05-07 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: I'm submitting another patch which includes a test in test_smtpnet. Would appreciate further feedback. -- Added file: http://bugs.python.org/file21927/smtp_default_port_with_smtpnet_test.patch

[issue8809] smtplib should support SSL contexts

2011-04-27 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: Thanks for the quick review. I'm submitting a new patch with changes suggested. -- Added file: http://bugs.python.org/file21791/smtp_sslcontext_updated3.patch ___ Python tracker rep

[issue11927] SMTP_SSL doesn't use port 465 by default

2011-04-27 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: I did a quick patch based on the suggested solution. (pitrou, thanks for adding to the nosy list or could have missed this) -- keywords: +patch Added file: http://bugs.python.org/file21794/smtplib_default_ports.patch

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-26 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: Yes problem seems to be with time.mktime(). Here is my output, calendar.timegm((2000, 1, 1, 0, 0, 0, -1, -1, -1)) 946684800 x = imaplib.Internaldate2tuple(b'25 (INTERNALDATE 01-Jan-2000 00:00:00 +)') x time.struct_time(tm_year=2000

[issue8809] smtplib should support SSL contexts

2011-04-25 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: I did another patch based on feedback given. A test for SMTP_SSL wasn't added; will look into it later. Tab character that were present are removed. Also SSLContext support was added to starttls() but it is slightly different from

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-24 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: Yes this is a repeatable error. My timezone is GMT + 5:30. The test fails even if the last element of 'calendar.timegm's tuple is changed to 0 or 1 but pass if the function is changed as follows print calendar.timegm((1999, 12, 31, 23, 30, 0

[issue8809] smtplib should support SSL contexts

2011-04-20 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: I'm submitting a new patch with changes suggested by Terry. But I feel an example of how to use a SSLContext inside the Docstring of SMTP_SSL constructor is unnecessary since no smtp specific things are done to the passed SSLContext. Any

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-19 Thread Kasun Herath
New submission from Kasun Herath kasun...@gmail.com: test_imaplib failed on x86 ubuntu machine with following error(s) == FAIL: test_Internaldate2tuple (test.test_imaplib.TestImaplib

[issue8809] smtplib should support SSL contexts

2011-04-19 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: I did a patch that allows smtplib.SMTP_SSL constructor to accept an optional SSLContext -- keywords: +patch nosy: +kasun Added file: http://bugs.python.org/file21730/smtp_sslcontext.patch ___ Python