GET IMAP Email list" activity

I am using “GET IMAP Email list” activity to get the mail from gmail account with filter expression “[ SUBJECT ]= Here’s the 6-digit verification code you requested” and tried all the filter expression . And i am using character set “US-ASCII”.

This filter expression works in the “GET OUTLOOK MAIL MESSAGE” activity
NOTE - Workflow is in C# environment

I get this error - Get IMAP Email List: The IMAP server replied to the ‘SEARCH’ command with a ‘BAD’ response: Could not parse command

Hi!

Take a look at this:

Try this
“SUBJECT ““Here’s the 6-digit…”””

Thank you ! but it is not working

Ok!

Could you please take a screenshot of your activity and your filter expression.

Thank you!

And also your filter expression :slight_smile:

Thank you!

Did you try with

“SUBJECT ““Here’s the 6-digit verification code you requested”””

Just copy the line and paste it into the filter.

Thank you , but i got below error

Nice!

That error means that the double quotes that you copied isn’t properly recognized by Studio :slight_smile:
Try typing the quotes or the entire expression yourself.

Related thread:
Assign: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run - Help / Studio - UiPath Community Forum

i typed this “SUBJECT ““Here’s the 6-digit verification code you requested”””

but same error - Get IMAP Email List: The IMAP server replied to the ‘SEARCH’ command with a ‘BAD’ response: Could not parse command

The ’ might be the cause of the issue, try using an escape character
Like this:

“SUBJECT ““Here\'s the 6-digit verification code you requested”””

Experiment a bit.

Ok Thank you , lets do some experiment