Spire.Email for .NET is a professional .NET Email library specially designed for developers to create, read and manipulate emails from any .NET (C#, VB.NET, ASP.NET) platform with fast and high quality performance.

Fri Mar 11, 2022 10:17 pm

I've tried passing a bunch of commands from RFC3501 for IMAP.

Other than 'Contains' I just receive query string is invalid.

Is there a list anywhere of commands that can be used. Every example I can see online using 'Contains'.

garryflanagan
 
Posts: 1
Joined: Fri Mar 11, 2022 9:51 pm

Mon Mar 14, 2022 6:40 am

Hello,

Thank you for your inquiry.
Our Spire.Email formula for search queries is
Code: Select all
ImapMessageCollection msgs = imap.Search(" ('Subject' Contains '2021' |'Seen' ='True') ");

In addition, you mentioned "Is there a list anywhere of commands that can be used", I am not sure about this requirement, please provide more details. Thanks in advance.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Email