Lord Anton Hvornum added the comment:
Turns out, this goes for a lot more commands, such as:
```
Traceback (most recent call last):
File "mail.py", line 12, in <module>
smtp_server.sendmail(fromaddr, toaddrs, msg)
File "/usr/lib/python3.6/smtplib.py", line 866, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
```
The command that the server refused was:
mail FROM:<[email protected]> size=11
Again, this is mostly because traditionally server commands are upper case
(even tho RFC 821 defines that they can be any syntax, such as `mAiL FroM`).
But it would be nice if Python could keep consistency in it's syntax IMHO.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue29860>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com