Is there a bug in filter function of 'Get Outlook Mail Message' Activity

Hi Team,

When I’m trying to filter emails with sender email address,
“[senderemailaddress]=xxxxx” seems to be working if in sender email address’s username doesn’t contain DOT(.)[for ex: it’s working for info@mail.uipath.com. But not working for abc.xyz@gmail.com].

This is the error screenshot:

Also tried filtering with this, but no luck:

Can someone please check if it is a bug or something in the Mail activities package.

I am using below versions:
Studio Verion:
UiPath Studio Version: 2022.10.3
1.18.2 for UiPath.Mail.[Activities](Activities).

Raised a query in forum as well:

If someone can please look into this?

Thanks,
Deepika

Hi,

How about using backslash as the following? In my environment, it doesn’t throw exception. (it fails if backslash doesn’t exist.)

"[senderemailaddress]=xyz\.abc@example.com"

If your input is dynamic, String.Replace method (or Regex.Replace) might help you. address.Replace(".","\.")

Regards,

@deepika.garg

The second urn filter you gave is missing double quotes around the urn part…please use it like this and check

"@SQL=""urn:schemas:httpmail:fromemail"" like '%abc%'"

Even for sender email …email should be enclosed in single quotes like below

"[SenderEmailAddress] = ’abc@xyz.com‘"

Cheers

Hi @Yoichi,

Thanks for the reply!!
Apologies for the late response
It’s not throwing any exception. But it’s not fetching the email either with backslash.

@Anil_G
I tried but not able to get the emails.

Tried with\without Backslah:

Thanks!

Hey Depika,

I will raise an improvement to my colleagues to see how we can escape dot(.) and if there are other scenarios we should take into consideration and we will come back to you.

Thank you for raising this issue.

1 Like

Thanks @AlexCrijman !! Look forward to solution!!

Hi @AlexCrijman

Dose [SenderEmailAddress] only filter mails that have different domain with receviers?

BR,
Donghai

Hey everybody,

We’ve checked on our side and if you filter using the bellow syntax it should work.

“[SenderEmailAddress] = ‘a.b@c.com’”