Skip to content

Commit 198c757

Browse files
committed
oxcmail: add commentary to bodyset_multi
1 parent 9ccd6a1 commit 198c757

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/mapi/oxcmail2.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,18 @@ static ec_error_t multibody_image(MIME_ENUM_PARAM &epar, const MIME *mime,
385385
}
386386
#endif /* AVOID_LIBXML */
387387

388+
/**
389+
* There are some MUAs around that produce HTML mails with multiple text/html
390+
* parts when an inline image is inserted into the richtext textarea. The
391+
* bodyset_* family of functions recombines these MIME parts, because MAPI (and
392+
* thus all of its MUAs) can only deal with at most one PR_HTML.
393+
*
394+
* (Since one cannot add inline images to plaintext, plaintext mails are
395+
* generally not chopped up.)
396+
*
397+
* @epar: input mail and its parts
398+
* @props: target MAPI message properties
399+
*/
388400
ec_error_t bodyset_multi(MIME_ENUM_PARAM &epar, TPROPVAL_ARRAY &props,
389401
const char *charset)
390402
{

0 commit comments

Comments
 (0)