Author Lord Anton Hvornum
Recipients Lord Anton Hvornum
Date 2017-03-20.14:59:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490021956.25.0.111333657333.issue29860@psf.upfronthosting.co.za>
In-reply-to
Content
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:<my_mail@gmail.com> 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.
History
Date User Action Args
2017-03-20 14:59:16Lord Anton Hvornumsetrecipients: + Lord Anton Hvornum
2017-03-20 14:59:16Lord Anton Hvornumsetmessageid: <1490021956.25.0.111333657333.issue29860@psf.upfronthosting.co.za>
2017-03-20 14:59:16Lord Anton Hvornumlinkissue29860 messages
2017-03-20 14:59:16Lord Anton Hvornumcreate