Filter mails based on email address from gmail

email

#1

Hi All,

I have one requirement to read mails based on specific email address and a unique data in the mail content from Gmail account under all mails section.
So I used Get IMAP mail message activity to read the emails but I am not able to filter the emails and then read the emails from Gmail as all mails section will contain huge mails and unable to retrieve the required mail even after reading 100 mails. Can anyone help me on this as I have stuck here and unable to proceed further.

help will be appreciated and thanks in advance!!


#2

Hi,
You could use condition on the mail item inside for each loop as shown below.

More on system.net.mail.mailmessages here


#3

I am doing something similar and see the following error but it worked with the expression item.From.DisplayName.Contains("")


#4

Can i use the same for TO ADDRESS(empty To Address) fitering?