Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool_operate: Don't append a filename to an SMTP URL #1133

Closed
wants to merge 1 commit into from

Conversation

jay
Copy link
Member

@jay jay commented Nov 21, 2016

Prior to this change sending a message via SMTP file upload could cause the filename to be sent as the EHLO, for example:

curl -v -u user:pass --mail-rcpt my_username_at_gmail.com -T mail.txt \
     smtps://smtp.gmail.com

curl would change the URL to smtps://smtp.gmail.com/mail.txt and since SMTP URLs with a path have that sent as the EHLO that would then cause:

EHLO mail.txt

@jay jay added the SMTP label Nov 21, 2016
@bagder
Copy link
Member

bagder commented Feb 11, 2017

Not sure this is worth it. Did anyone ever complain? And for a good smtp URL a user should provide the name as path anyway since curl cannot figure out accurately by itself.

Prior to this change sending a message via SMTP file upload could cause
the filename to be sent as the EHLO, for example:

curl -v -u user:pass --mail-rcpt my_username_at_gmail.com -T mail.txt \
     smtps://smtp.gmail.com

curl would change the URL to smtps://smtp.gmail.com/mail.txt and since
SMTP URLs with a path have that sent as the EHLO that would then cause:
EHLO mail.txt

Closes #xxxx
@jay jay force-pushed the smtp_no_uploadfile_in_ehlo branch from 135d90b to 27a4fcd Compare February 11, 2017 18:42
@jay
Copy link
Member Author

jay commented Feb 11, 2017

And for a good smtp URL a user should provide the name as path anyway since curl cannot figure out accurately by itself.

I'd guess many users would just smtp://smtp.foo.com and not worry about providing a path, but I don't have anything to back that up. Regardless my position is it's wrong to append the filename to an SMTP URL since that ultimately means it will be used in the EHLO.

This is out of draft now, I've moved the detection code to a helper function and rebased on master.

@stale
Copy link

stale bot commented Apr 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 3, 2018
@stale stale bot closed this Apr 17, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

2 participants