[Imap-protocol] Imap Search Command Parse Logic

李艾倫 <[email protected]>
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>
Hi,

 

I'm currently working on implementing IMAP protocol on our mail server.
This is my first time implementing such a big project and I've so far coded
a majority of IMAP commands in the RFC, except the Search command.

I've been searching on the internet and studied postfix(RPN) algorithm for
weeks to see how to parse the search command correctly.

It seems Postfix would work until I encountered something like OR OR A B C D
==> (OR (OR A B) C) D

Could anyone point me a direction on how to implement the Search command
when there are multiple ORs?

Should I even consider using Postfix(RPN) algorithm to parse search command?

 

Thank you very much for any help or tips you could provide.

 

Helen


======================================
Powered by Rainbow Mail Server 6.0

本通訊之資訊可能含有受機密或特殊管制之資訊,僅供指定之收件人使用。若您並非指定之收件人,切勿轉寄、散佈、複製或公開本通訊內容之任何部份,並請即通知寄件人並完全刪除本通訊。
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. Please consider the environment before printing this email.

_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-protocol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.