-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
src: add CURLOPT_UPLOAD_FLAGS #15970
Conversation
Analysis of PR #15970 at 55d889c4: Test 1140 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 13 different CI jobs (the link just goes to one of them). Test 1173 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 13 different CI jobs (the link just goes to one of them). Test 3209 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 13 different CI jobs (the link just goes to one of them). Test 3208 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 13 different CI jobs (the link just goes to one of them). Generated by Testclutch |
The build failures surprise me as they aren't happening locally for me. They seem caused by my use of the
The test cases I added (3208 and 3209) seem to be failing because of CRLF line endings
I thought this was set in |
You probably want your |
Thanks for the review! I've committed fixes for each of your remarks. Unfortunately it looks like there was a warning in the |
1140 and 1173 seem to be failing due to the absence of I included a
|
Man pages are written in Markdown and stored in docs/libcurl/opts/. They're converted to nroff by the build system.
|
Looks like all the checks are passing now. If there's anything else needed to get this merged (the next time the feature window is open) please let me know. |
"This branch cannot be rebased due to conflicts". Can you please fix and force-push ? |
I think the remaining test failures are unrelated to my changes. |
Thanks for the review! I've pushed a patch that addresses your comments. |
The dist / maketgz-and-verify-in-tree (pull_request) failure is really weird. runtests.pl exits with this:
|
Thanks a lot for your hard work and patience with this! |
Adds support for specifying upload flags, to allow e.g. uploading mail via IMAP without the
Seen
flag. e.g.curl imap://example.com:993/MAILBOX -u 'user@example.com' --upload-file /some/file --upload-flags !Seen,Flagged
I wasn't sure what to do about the fact that the existing IMAP append implementation sends the
Seen
flag by default. If I naively kept that behaviour and provided only theAnswered
,Deleted
,Draft
,Flagged
, andSeen
flags, there would be no way to turn theSeen
flag off. There were a couple of approaches I considered.Change the default behaviour not to send
Seen
unless specified with the new opt, but this would break existing scripts/commands.Instead of allowing a
Seen
flag, make it anUnseen
flag. This would let the user make an upload unseen but would be a little wonky as it works the opposite way of the other flags (disabling functionality rather than enabling it) and might be a problem if in the future, we want to be able to set an upload asSeen
using a protocol other than IMAP.Allow inversion of flags via a
!
prefix. This was what I eventually chose. It's likely overkill for just the current set of flags (the only situation in which you'd need to use!
is!Seen
, since the other flags are already unset by default) but works well if in the future there is a need to use the same flag names in other protocols.If you have any thoughts on this please let me know.