Get Exchange Mail Messages - Activity: One or more errors occurred

Hello,

i discovered a reproduceable bug in the “Get Exchange Mail Messages” - Activity:

When a mail is sent to an non existing receiver, an automatically mail is created by the exchange server that informs about a failed delivery. With THIS mail in the Inbox folder, the acitivty is unable to load mails.
I configured the activity for a “SharedMailBox”.

Can anyone help or confirm the bug?

The following error occurs:
Get Exchange Mail Messages:
One or more errors occurred.

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.AggregateException: One or more errors occurred. ----> System.FormatException: The specified string is not in the form required for an e-mail address.
at System.Net.Mail.MailAddressParser.ReadCfwsAndThrowIfIncomplete(String data, Int32 index)
at System.Net.Mail.MailAddressParser.ParseDomain(String data, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
at System.Net.Mail.MailAddressParser.ParseAddress(String data)
at System.Net.Mail.MailAddress…ctor(String address, String displayName, Encoding displayNameEncoding)
at UiPath.Mail.ExchangeMail.MailMessageBuilder.WithFromAddress(String address, String name)
at UiPath.Mail.ExchangeMail.MailMessageBuilder.WithFromAddress(EmailAddress from)
at UiPath.Mail.ExchangeMailUtil.ConvertToMailMessage(EmailMessage exchangeMessage, Boolean saveAttachments)
at UiPath.Mail.ExchangeMailService.GetMessages(ExchangeService service, IEmailFolderService folderService, String fromFolder, String sharedMailbox, Int32 count, Boolean htmlBody, Boolean saveAttachments, Boolean markAsRead, Boolean unreadMessages, CancellationToken cancellationToken)
— End of inner ExceptionDetail stack trace —
at UiPath.Mail.Exchange.Activities.ExchangeScope.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Activity-configuration:
- ExchangeVersion: Exchange2013
- GetAttachments: YES
- OnlyUnreadMessages: YES
- Top: 50
- Output: Set to variable
- MailFolder: Inbox
- SharedMailbox: XXXXX@XXXXX.de (confidential)

Technical details:
Operating system: Windows 10 - Version 1607 (Build 14393.3274) = Win 10 Enterprise 2016 LTSB
UIPath - Version 19.4.4
UIPath.Mail.Activities - Version 1.4.1

Example mail (screenshot from outlook):

Mail-Headers (from outlook):
From: XXXX-XXXXX@XXXX.XXXXX.net
Subject: Unzustellbar: Test
Thread-Topic: Test
Thread-Index: (confidential)
Date: Wed, 4 Dec 2019 14:04:19 +0000
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
Content-Type: multipart/report;
boundary=“000_7073707466696772657880797967696976656670656879787776757”;
report-type=delivery-status
MIME-Version: 1.0

Kindly check with this error
it seems like the mail address is not mentioned correctly

Cheers @Dennis0

Thats what i also noticed - but i cannot influence the mail.

Dennis0, this is such a big and complicated problem. I experienced this when I came to work in a new company. They have just begun to bring their corporate mail to a single Outlook standard ( https://www.outlooktransfer.com/ ).Many people think that e-mail is the same in any software version but it isn’t. I used Thunderbird before and it was far not so convenient as Outlook. I realized in practice now how much the customer lists in the mass mailing help.