Hi, I have noticed an issue whereby the meeting organiser is not included in the “Required” recipients field for a cancellation. Please could you confirm if this could be fixed in the library? Here is a simple test project containing the following test, and the source EML.
Thank you.
missingRecipientTestCase.zip (7.8 KB)
cancellation.zip (3.0 KB)
import org.junit.Assert;
import org.junit.Test;
import com.aspose.email.MailMessage;
import com.aspose.email.MapiMessage;
import com.aspose.email.MapiPropertyTag;
public class MissingRecipient {
@Test
public void test() {
// Given
MailMessage mailMessage = MailMessage.load("/TODO/" + "cancellation.eml");
// When
MapiMessage mapiMessage = MapiMessage.fromMailMessage(mailMessage);
// Then
Assert.assertTrue(mapiMessage.getProperties().get_Item(MapiPropertyTag.PR_SENDER_EMAIL_ADDRESS).getString().contains("john.smith@enterprise.net"));
Assert.assertTrue(mapiMessage.getProperties().get_Item(MapiPropertyTag.PR_DISPLAY_TO).getString().contains("joanna.smithers@enterprise.net"));
Assert.assertFalse(mapiMessage.getProperties().get_Item(MapiPropertyTag.PR_DISPLAY_TO).getString().contains("john.smith@enterprise.net"));
mapiMessage.save("/TODO/" + "converted.msg");
}
}