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
This commit is contained in:
Patrick Monnerat 2022-09-28 18:12:15 +02:00 committed by Daniel Stenberg
parent 75670e4573
commit 2437fac013
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
7 changed files with 101 additions and 55 deletions

View file

@ -28,6 +28,9 @@ body
#
# Client-side
<client>
<features>
Mime
</features>
<server>
imap
</server>