[issue613708] Add smtplib support for SMTP AUTH LOGIN

2022-04-10 Thread admin
Change by admin : -- github: None -> 37211 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue401152] smtplib uses send() without verifying the amount of data sen

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue537484] SMTPLib sendmail fails on hyphenated adr

2022-04-10 Thread admin
Change by admin : -- github: None -> 36361 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue523195] SMTPLIB does not support "

2022-04-10 Thread admin
Change by admin : -- github: None -> 36167 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue504611] smtplib - multiple addresses bug

2022-04-10 Thread admin
Change by admin : -- github: None -> 35931 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue210944] smtplib doesn't use FQDN

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue401350] Fix SMTPlib for large messages

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue487310] smtplib mishandles SMTP disconnects

2022-04-10 Thread admin
Change by admin : -- github: None -> 35629 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue224344] smtplib quoteaddr() has problems with RFC821 source routing

2022-04-10 Thread admin
Change by admin : -- github: None -> 33541 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue461413] Add STARTTLS feature to smtplib

2022-04-10 Thread admin
Change by admin : -- github: None -> 35170 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue224344] smtplib quoteaddr() has problems with RFC821 source routing

2022-04-10 Thread admin
Change by admin : -- github: None -> 33541 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue401350] Fix SMTPlib for large messages

2022-04-10 Thread admin
Change by admin : -- github: None -> 33010 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue210944] smtplib doesn't use FQDN

2022-04-10 Thread admin
Change by admin : -- github: None -> 32875 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue401152] smtplib uses send() without verifying the amount of data sen

2022-04-10 Thread admin
Change by admin : -- github: None -> 32919 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue47047] smtplib: allow custom policy or use msg.policy in send_message

2022-03-17 Thread Mikael Koli
Mikael Koli added the comment: It seems the message's policy is actually used. However, the mangle_from_ is still always True as the policy is not passed in the initiation of the generator. It seems though that all the options I mentioned could still make the mangle_from_ to be changeable

[issue47047] smtplib: allow custom policy or use msg.policy in send_message

2022-03-17 Thread Mikael Koli
) - Use the message's policy always (unsafe, possibly breaking and causing security issues in existing code) -- components: Library (Lib), email messages: 415428 nosy: Miksus, barry, r.david.murray priority: normal severity: normal status: open title: smtplib: allow custom policy or use msg

[issue15013] [doc] smtplib: add low-level APIs to doc?

2021-12-06 Thread Irit Katriel
Change by Irit Katriel : -- title: smtplib: add low-level APIs to doc? -> [doc] smtplib: add low-level APIs to doc? type: -> enhancement versions: +Python 3.11 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker <https://bugs.p

[issue43124] [security] smtplib multiple CRLF injection

2021-08-30 Thread Ned Deily
Ned Deily added the comment: New changeset 29d97d17fb7adab3b0df9e178b73f70292d1cf64 by Miss Islington (bot) in branch '3.6': [3.6] bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28038) https://github.com/python/cpython/commit/29d97d17fb7adab3b0df9e178b73f70292d1cf64

[issue43124] [security] smtplib multiple CRLF injection

2021-08-30 Thread Ned Deily
Ned Deily added the comment: New changeset d2cc04cd3024869101e894f73307944d98d187c8 by Miss Islington (bot) in branch '3.7': [3.7] bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28037) https://github.com/python/cpython/commit/d2cc04cd3024869101e894f73307944d98d187c8

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Martin! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b93aea4c7e4553950daa5d47c3ef2dc8a9c4edff by Miss Islington (bot) in branch '3.8': [3.8] bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28036) https://github.com/python/cpython/commit/b93aea4c7e4553950daa5d47c3ef2dc8a9c4edff

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 24416e419194f11b639146c0d8bed9df315aca5a by Miss Islington (bot) in branch '3.9': bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28035) https://github.com/python/cpython/commit/24416e419194f11b639146c0d8bed9df315aca5a

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington
miss-islington added the comment: New changeset 9e6c317ab133cd8fa48d5ecd8568314ef2e98634 by Miss Islington (bot) in branch '3.10': bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) https://github.com/python/cpython/commit/9e6c317ab133cd8fa48d5ecd8568314ef2e98634

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +26482 pull_request: https://github.com/python/cpython/pull/28037 ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +26483 pull_request: https://github.com/python/cpython/pull/28038 ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +26479 pull_request: https://github.com/python/cpython/pull/28034 ___ Python tracker

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +26481 pull_request: https://github.com/python/cpython/pull/28036 ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0897253f426068ea6a6fbe0ada01689af9ef1019 by Miguel Brito in branch 'main': bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) https://github.com/python/cpython/commit/0897253f426068ea6a6fbe0ada01689af9ef1019

[issue43124] [security] smtplib multiple CRLF injection

2021-08-29 Thread miss-islington
Change by miss-islington : -- pull_requests: +26480 pull_request: https://github.com/python/cpython/pull/28035 ___ Python tracker ___

[issue44742] smtplib: less confusing behaviour when giving incorrect multiple recipients list

2021-07-26 Thread Célestin Matte
sendmail() raises an exception if a series of email in a string format is detected Attached is an example script to test confusing behaviour (email is sent to ema...@mydomain.com only): -- files: test_sendmail.py messages: 398228 nosy: cmatte priority: normal severity: normal status: open

[issue43124] [security] smtplib multiple CRLF injection

2021-07-19 Thread R. David Murray
R. David Murray added the comment: My apologies, I did not think about the possibility of an English issue. I was reacting to the "security report speak", which I find often makes a security issue sound worse than it is :) Thank you for reporting this problem, and I do think we should fix

[issue43124] [security] smtplib multiple CRLF injection

2021-07-13 Thread Martin Ortner
Martin Ortner added the comment: > This bug report starts with "a malicious user with direct access to > `smtplib.SMTP(..., local_hostname, ..)", which is a senseless supposition. > Anyone with "access to" the SMTP object could just as well be talking > directly to the SMTP server and do

[issue43124] [security] smtplib multiple CRLF injection

2021-07-13 Thread R. David Murray
R. David Murray added the comment: s/header injection/command injection/ -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43124] [security] smtplib multiple CRLF injection

2021-07-13 Thread R. David Murray
ld reasonably be derived from user input ends up being passed as arguments to an smtplib method that calls putcmd with arguments. So, I would rate this as *very* low impact issue, unless someone has an *actual example* of code using smtplib that passes user input through to smtplib commands in

[issue43124] [security] smtplib multiple CRLF injection

2021-07-10 Thread Alireza Pourali
Change by Alireza Pourali : -- components: -email type: security -> performance versions: -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue44269] smtplib AUTH command doesn't handle EAI arguments

2021-06-13 Thread John L
Change by John L : -- keywords: +patch pull_requests: +25299 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26709 ___ Python tracker ___

[issue44269] smtplib AUTH command doesn't handle EAI arguments

2021-05-30 Thread John L
" I have tried this with EAI mail servers in India and China to be sure it works. -- components: Library (Lib) messages: 394779 nosy: jrlevine priority: normal severity: normal status: open title: smtplib AUTH command doesn't handle EAI arguments type: behavior versions: Python 3.6, Py

[issue43124] [security] smtplib multiple CRLF injection

2021-05-21 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR! Can someone from the email team take a look at it, please? -- ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-05-08 Thread Miguel Brito
Change by Miguel Brito : -- keywords: +patch pull_requests: +24639 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25987 ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-05-07 Thread Ned Deily
Ned Deily added the comment: There is no sign of anyone currently working on it, so please feel free to dig in! -- ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-05-07 Thread Miguel Brito
Miguel Brito added the comment: If there's no one working on it I'd be happy to prepare a fix. -- nosy: +miguendes ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-05-07 Thread Ned Deily
Ned Deily added the comment: Still in "deferred blocker" status awaiting a PR from someone -- ___ Python tracker ___ ___

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-05-07 Thread junpengruan
junpengruan <632077...@qq.com> added the comment: Hi Pandu, thanks for your reply! I have read the RFC4954 you mentioned and agree that the server shouldn't react like this. Then I notice that this RFC's publication date is 2007 and the server I use is published in 2003, that's maybe the

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-05-06 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: > I am using Magic Winmail Server2.4(build 0530) as a SMTP server, which > appears dont support initial_response, so I set initial_response_ok=False and > got this Error. currently I catch this error and ignore it to evade program > failed, it works fine.

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-05-06 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: A stronger case is the "Formal Syntax" on https://tools.ietf.org/html/rfc4954#page-13 : > continue-req= "334" SP [base64] CRLF > ;; Intermediate response to the AUTH > ;; command. >

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-05-06 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: Technically, that is not the fault of smtplib.SMTP The standard for SMTP AUTH specifies that characters following "334 " MUST be Base64 encoded. See https://tools.ietf.org/html/rfc4954#page-4 , 3rd paragraph: > A server challenge is sent as a 334 reply

[issue43949] binascii.Error raised in smtplib when initial_response_ok=False

2021-04-27 Thread junpengruan
evade program failed, it works fine. Is there better way to fix this problem? Thanks! -- components: email messages: 392039 nosy: barry, junpengruan, r.david.murray priority: normal severity: normal status: open title: binascii.Error raised in smtplib when initial_response_ok=False type: behav

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-04-26 Thread Senthil Kumaran
binascii.Error: > > Traceback (most recent call last): > File "/usr/lib/python3.6/smtplib.py", line 644, in auth > challenge = base64.decodebytes(resp) > File "/usr/lib/python3.6/base64.py", line 553, in decodebytes > return binascii.a2b_base64(s)

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-04-26 Thread junpengruan
line 553, in decodebytes return binascii.a2b_base64(s) binascii.Error: Incorrect padding I think this fit the title "a bug in smtplib when initial_response_ok=False", should I just comment on this issue or open a new issue? Thanks! -- nosy: +junpengruan __

[issue43124] [security] smtplib multiple CRLF injection

2021-04-02 Thread Łukasz Langa
Łukasz Langa added the comment: Deferred the blocker to a regular release due to lack of activity in time for the current expedited releases. -- priority: release blocker -> deferred blocker ___ Python tracker

[issue43124] [security] smtplib multiple CRLF injection

2021-03-31 Thread Christian Heimes
Change by Christian Heimes : -- nosy: +christian.heimes, lukasz.langa, ned.deily priority: normal -> release blocker ___ Python tracker ___

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-03-30 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset cf35e05f89bb008d6f4553f9875e0fe87fc02406 by Grégory Starck in branch 'master': bpo-43125: Fix: return expected type (str), not original value (bytes) in email/base64mime.py::body_encode (GH-24476)

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-03-30 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 -Python 3.6, Python 3.8 ___ Python tracker ___

[issue29687] smtplib does not support proxy

2021-03-17 Thread Christian Heimes
Christian Heimes added the comment: It's not a public API but it's a stable API. It hasn't changed since Python 2.6 and commit 366d6262f81 from 2007. It's unlikely to change in the near future. -- ___ Python tracker

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Ryan Hiebert added the comment: Thank you, Christian. It sounds like you believe that we should view the `_get_socket` method as a public interface? That at least makes it possible to use a proxy socket through an appropriate mechanism, which solves my use-case. --

[issue29687] smtplib does not support proxy

2021-03-17 Thread Christian Heimes
Christian Heimes added the comment: The Python standard library has no builtin support for socks proxy. I suggest that you report issues with socks library to the author of the package. By the way the smptlib makes it really easy to override the socket object with a custom implementation:

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Change by Senthil Kumaran : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 8cadc2c9cacfa1710cb5ca28a70f7782cacf09aa by Senthil Kumaran in branch '3.8': [3.8] bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24833) https://github.com/python/cpython/commit/8cadc2c9cacfa1710cb5ca28a70f7782cacf09aa

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 32717b982d3347e30ae53eb434e2a32e0d03d51e by Miss Islington (bot) in branch '3.9': bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24832) https://github.com/python/cpython/commit/32717b982d3347e30ae53eb434e2a32e0d03d51e

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +23599 pull_request: https://github.com/python/cpython/pull/24833 ___ Python tracker ___

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +23598 pull_request: https://github.com/python/cpython/pull/24832 ___ Python tracker

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 7591d9455eb37525c832da3d65e1a7b3e6dbf613 by Pandu E POLUAN in branch 'master': bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) https://github.com/python/cpython/commit/7591d9455eb37525c832da3d65e1a7b3e6dbf613 --

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-09 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: Hi Senthil, You're right, it does need a guard. According to my knowledge there is no AUTH mechanism that will send more than 3 challenges; they should fail afterwards with 535 or similar. Servers that don't do that should be considered buggy/broken. So

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Pandu, Thank you for this patch and the explanation. Does client blocking on repeated challenge from the server (using of while loop) look okay here? The conversation here indicates to me that it is fine. Is there any recommendation or

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-02-25 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: PR available on GitHub and it's already more than one month since the PR was submitted, so I'm pinging this issue. -- ___ Python tracker

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-21 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Grégory Starck added the comment: I filled the PR https://github.com/python/cpython/pull/24476 feel free to comment. -- ___ Python tracker ___

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Change by Grégory Starck : -- keywords: +patch pull_requests: +23268 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24476 ___ Python tracker ___

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Change by Grégory Starck : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Grégory Starck added the comment: problem seems to/could be in /usr/lib/python3.8/email/base64mime.py ``` def body_encode(s, maxlinelen=76, eol=NL): r"""Encode a string with base64. Each line will be wrapped at, at most, maxlinelen characters (defaults to 76 characters).

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Grégory Starck added the comment: I reproduced directly. by using a valid smtp server. -- nosy: +g.sta...@gmail.com ___ Python tracker ___

[issue43124] [security] smtplib multiple CRLF injection

2021-02-04 Thread STINNER Victor
Change by STINNER Victor : -- title: smtplib multiple CRLF injection -> [security] smtplib multiple CRLF injection ___ Python tracker <https://bugs.python.org/issu

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-04 Thread Michael L. Boom
New submission from Michael L. Boom : The space is string, and either mechanism and/or response are bytes. smtplib.py:634 response = encode_base64(initial_response.encode('ascii'), eol='') (code, resp) = self.docmd("AUTH", mechanism + " " + response) import smt

[issue43124] smtplib multiple CRLF injection

2021-02-04 Thread Martin Ortner
F injection points have been discovered in the Python standard library for `SMTP` interaction (client perspective) named `smtplib` that may allow a malicious user with direct access to `smtplib.SMTP(..., local_hostname, ..)` or `smtplib.SMTP(...).mail(..., options)` to inject a CR-LF control s

[issue41868] SMTPLIB integrate or provide option to use "logging"

2021-01-11 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: Will patching smtplib.SMTP._print_debug do? You can subclass from smtplib.SMTP this way: class MySMTPClient(smtplib.SMTP): def __init__(self, *args, logger=None, **kwargs): super().__init__(*args, **kwargs) self.logger = logger def

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-01-11 Thread Pandu E POLUAN
Change by Pandu E POLUAN : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42807] smtplib send_message should gives more clear exception if the msg is None

2021-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not familiar with either smtp or email, but I can make some general comments. 1. "AttributeError: 'NoneType' object has no attribute 'get_all'" seems pretty straightforward to me. Hard to debug? Depends on knowledge and experience. When coming from

[issue42859] smtplib: recipe for certifying message delivery

2021-01-07 Thread Dmitry Goldenberg
Dmitry Goldenberg added the comment: Yes, it's a question which could lend itself well to a documentation issue. I've looked at things like: https://stackoverflow.com/questions/54047021/python-smtplib-how-to-use-disposition-notification-to https://stackoverflow.com/questions/40369645/detect

[issue42859] smtplib: recipe for certifying message delivery

2021-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: This looks more like a question than an issue. Have you tried stackoverflow or a user forum? -- nosy: +gvanrossum ___ Python tracker ___

[issue42859] smtplib: recipe for certifying message delivery

2021-01-07 Thread Dmitry Goldenberg
New submission from Dmitry Goldenberg : Is there a reliable way to certify (ensure, track) the delivery of an email message when using smtplib? For example: Disposition-Notification-To message header which enables the e-mail reader of the recipient to send confirmation e-mail when

[issue42498] smtplib is glitchy after receive server code 500

2021-01-05 Thread izomiac
izomiac added the comment: I agree, it's my suspicion that the server's error message and python's outbound command are sent so close to each other that buffering ensures they disagree about the exact sequence of commands/responses. As for my server, it was HAProxy doing the injection and I

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-01-05 Thread Pandu E POLUAN
Change by Pandu E POLUAN : -- keywords: +patch pull_requests: +22948 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24118 ___ Python tracker ___

[issue42498] smtplib is glitchy after receive server code 500

2021-01-05 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: The "problem" is that smtplib.SMTP does the following, in essence: 1. Open connection to server 2. Send EHLO 3. Read server response The PROXY injection causes a response from the server, but the response gets "cached" in the incoming TCP buffer. The

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-01-04 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: Okay, I finally figured out what's wrong. This piece of code in `test_smtplib.py`: if self.smtp_state == self.AUTH: line = self._emptystring.join(self.received_lines) print('Data:', repr(line), file=smtpd.DEBUGSTREAM)

[issue42807] smtplib send_message should gives more clear exception if the msg is None

2021-01-01 Thread oon arfiandwi
New submission from oon arfiandwi : I want to enhance the error message on the send_message method of class SMTP, in module smtplib. One of the parameters on send_message is msg which is email.message.Message object, this is a required argument. If the msg is None, currently it will raise

[issue27820] Possible bug in smtplib when initial_response_ok=False

2020-12-31 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: I tried adding the code below to test_smtplib.py: def testAUTH_LOGIN_initial_response_notok(self): self.serv.add_feature("AUTH LOGIN") smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost',

[issue27820] Possible bug in smtplib when initial_response_ok=False

2020-12-30 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: I tried creating a PR, but for the life of me I couldn't wrap my head around how testAUTH_LOGIN is being performed (it's in Lib/test/test_smtplib.py) All I know is, the test doesn't AT ALL test for situations where initial_response_ok=False. ALL tests are

[issue27820] Possible bug in smtplib when initial_response_ok=False

2020-12-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27820] Possible bug in smtplib when initial_response_ok=False

2020-12-13 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: This issue is still a bug for Python 3.6 and Python 3.8 I haven't checked on Python 3.7 and Python 3.9 -- versions: +Python 3.6, Python 3.8 ___ Python tracker

[issue27820] Possible bug in smtplib when initial_response_ok=False

2020-12-13 Thread Pandu E POLUAN
Pandu E POLUAN added the comment: Hi, I'm one of the maintainers of aio-libs/aiosmtpd. This issue also bit me when trying to write unit tests for aio-libs/aiosmtpd AUTH implementation But I partially disagree with Dario D'Amico's changes, specifically the suggested change in the

[issue42498] smtplib is glitchy after receive server code 500

2020-11-28 Thread izomiac
New submission from izomiac : I use a custom e-mail server and noticed I wasn't getting e-mails from FreeNAS. I tracked the bug down to Python's smtplib. My home internet can't do outbound port 25, so I use a port forwarding script that I've since learned injects "PROXY TCP4

[issue32803] smtplib: LMTP broken in the case of multiple RCPT

2020-11-13 Thread Jacob Middag
Jacob Middag added the comment: It would be nice if someone could take a look. -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___

[issue3461] smtplib does not fully support IPv6 in EHLO

2020-11-10 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___

[issue32793] smtplib: duplicated debug message

2020-10-13 Thread Dong-hee Na
Dong-hee Na added the comment: @ZackerySpytz Thank you for work :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32793] smtplib: duplicated debug message

2020-10-13 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 76b1913daf883b6592815d139f62f3a7fbe3c322 by Dong-hee Na in branch '3.8': [3.8] bpo-32793: Fix a duplicate debug message in smtplib (GH-15341) (GH-22683) https://github.com/python/cpython/commit/76b1913daf883b6592815d139f62f3a7fbe3c322

[issue32793] smtplib: duplicated debug message

2020-10-13 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32793] smtplib: duplicated debug message

2020-10-13 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +21655 pull_request: https://github.com/python/cpython/pull/22683 ___ Python tracker ___

[issue32793] smtplib: duplicated debug message

2020-10-13 Thread Dong-hee Na
Dong-hee Na added the comment: 3.7 only can be applied security fix. https://cpython-devguide.readthedocs.io/#branchstatus -- nosy: +corona10 ___ Python tracker ___

[issue32793] smtplib: duplicated debug message

2020-10-10 Thread Irit Katriel
Irit Katriel added the comment: Does this need to be backported to 3.8/3.7? -- nosy: +iritkatriel ___ Python tracker ___ ___

  1   2   3   4   5   6   7   8   9   10   >