Dear Maintainer,
I'm writing a program using the mailutils library and have the following
sequence of commands:
1) Iterate through all messages in a mailbox with using
mu_mailbox_messages_count() and mu_mailbox_get_message(),
do some stuff but do NOT call mu_message_get_body()
2) Iterate through the messages a second time, same as above but
DO retrieve the body this time.
Step 2 will for most (not all) messages result in a zero size message
body when you call mu_message_is_multipart() before retrieving the body.
There are two possible workarounds, first is not to call
mu_message_is_multipart(), second is to retrieve the body during step 1
(just calling mu_body_size() on it is enough).
I will attach a short sample program to illustrate the problem.
Best regards,
Andre