]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: sanitize conditional exclusion around MIME
authorPatrick Monnerat <patrick@monnerat.net>
Wed, 28 Sep 2022 16:12:15 +0000 (18:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Sep 2022 08:51:04 +0000 (10:51 +0200)
commit2437fac01387e2653b8fae785335dc2744bab75a
tree76fff79cdfb4599831aac26c2bbf390529137cc4
parent75670e457367515dc88cf43f7a4b9ddb9c5ab59e
lib: sanitize conditional exclusion around MIME

The introduction of CURL_DISABLE_MIME came with some additional bugs:
- Disabled MIME is compiled-in anyway if SMTP and/or IMAP is enabled.
- CURLOPT_MIMEPOST, CURLOPT_MIME_OPTIONS and CURLOPT_HTTPHEADER are
  conditioned on HTTP, although also needed for SMTP and IMAP MIME mail
  uploads.

In addition, the CURLOPT_HTTPHEADER and --header documentation does not
mention their use for MIME mail.

This commit fixes the problems above.

Closes #9610
docs/cmdline-opts/header.d
docs/libcurl/opts/CURLOPT_HTTPHEADER.3
lib/mime.c
lib/mime.h
lib/setopt.c
src/tool_listhelp.c
tests/data/test1590