STARTTLS: Don't print response character in denied messages #1203

Closed
wants to merge 1 commit into
from

Projects

None yet

3 participants

@jay
Member
jay commented Jan 12, 2017

Both IMAP and POP3 response characters are used internally, but when
appended to the STARTTLS denial message likely could confuse the user.


If nobody likes this there is still the problem if the response code is set -1 and that's printed as a character. At the very least I think we should do something like (ISALPHA(resp) ? resp : ' ') so that we don't print weird symbols. SMTP doesn't have this problem because libcurl is using its numeric response codes, so I've already fixed that separately in 4e6f483

@jay jay STARTTLS: Don't print response character in denied messages
Both IMAP and POP3 response characters are used internally, but when
appended to the STARTTLS denial message likely could confuse the user.
06dabe1
@mention-bot

@jay, thanks for your PR! By analyzing the history of the files in this pull request, we identified @captain-caveman2k, @bagder and @yirkha to be potential reviewers.

@jay jay added IMAP POP3 labels Jan 12, 2017
@bagder
bagder approved these changes Jan 12, 2017 View changes

Yes, let's get rid of those!

@jay jay added a commit that closed this pull request Jan 12, 2017
@jay jay STARTTLS: Don't print response character in denied messages
Both IMAP and POP3 response characters are used internally, but when
appended to the STARTTLS denial message likely could confuse the user.

Closes #1203
a18db79
@jay jay closed this in a18db79 Jan 12, 2017
@jay jay deleted the jay:starttls_no_denied_resp_char branch Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment