I want to get email message using imap since a 'particular time'!

I want to get mail message by giving a condition like ‘since that time(a variable) to till now’
How can i do that?

Hey @Althaf_KN,

Use the filter expression as per yor requirement in the filter property of Get IMAP mail message.

Have a look on the documentation https://docs.uipath.com/activities/docs/get-imap-mail-messages

Thanks,
Sanjit

But i want to filter using a variable which gives the time when the bot start running to till now

Hey @Althaf_KN,

StartTimeVar = Now.ToString(“dd-MMM-yyyy”)
You can pass the variable as "SINCE "+StartTimeVar

Thanks,
Sanjit

Already tried this method.It throws error like
Get IMAP Mail Messages: The IMAP server replied to the ‘SEARCH’ command with a ‘BAD’ response: Could not parse command

@Althaf_KN, so in that case

  1. Read all the mail messages
  2. ListofMailMessage.AsEnumerable().Where(Function(x)x.Headers(“Date”)<Now.ToString(“dd-MMM-yyyy”)).ToList

Thanks,
Sanjit