allow suffix after a mail address for RFC 3461#16643
Closed
my-name-is-already-taken wants to merge 8 commits intocurl:masterfrom
Closed
allow suffix after a mail address for RFC 3461#16643my-name-is-already-taken wants to merge 8 commits intocurl:masterfrom
my-name-is-already-taken wants to merge 8 commits intocurl:masterfrom
Conversation
|
Analysis of PR #16643 at fafb6ae0: Test 1515 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Generated by Testclutch |
Member
|
This looks like a good idea to support. I would just like to ask for a little more here:
|
vszakats
previously requested changes
Mar 10, 2025
1603e72 to
fafb6ae
Compare
Contributor
Author
|
I have fixed an error and added a testcase as well as some documentation. I had difficulties writing the test, so I would appreciate it if someone checked whether I've done it correcty. Please let me know if something else is missing. |
Member
|
Spellcheck says: This should silence it: --- i/.github/scripts/spellcheck.words
+++ w/.github/scripts/spellcheck.words
@@ -203,6 +203,7 @@ DoT
doxygen
drftpd
dsa
+DSN
Dudka
Dymond
dynbuf |
Thanks, all fixed from my end. Can't comment much on the protocol side.
Member
|
bagder
requested changes
Jul 25, 2025
Member
bagder
left a comment
There was a problem hiding this comment.
Needs merge conflicts resolved
Contributor
Author
|
I have resolved the conflict and renamed test3211 to test3215. |
vszakats
reviewed
Jul 29, 2025
bagder
approved these changes
Jul 30, 2025
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change makes it possible to Append a DSN specification behind the MAIL and RCPT mail addresses in the smtp protocol.
Currently, curl checks if these addresses start with a '<' or end with a '>' and remove these characters, before adding them when issuing the actual command. So when setting
CURLOPT_MAIL_RCPTto<foo@bar.com> NOTIFY=FAILURE, the actual address sent to the server becomes<foo@bar.com> NOTIFY=FAILURE>.This proposal changes the behavior in the following way: If the address starts with a '<' character, we search the address for the last '>' instead of only checking the last character. Everything that comes behind this bracket is then kept as a suffix in the address.
See also #8232.