implement imap search on server -


i'm working on implementing imap protocol on our mail server. first time implementing such big project , i've far coded majority of imap commands in rfc, except search command. i've been searching on internet , studied postfix algorithm weeks see how write search command correctly. seems postfix work until encountered or or b c d ==> (or (or b) c) d point me direction on how implement search command when there multiple ors?

thank provide.

this not going answer going like, i'll recommend anyway -- don't this. imap extremely complex protocol ton of non-obvious corner cases. baseline version (rfc3501) leaves many advanced features missing; in order reasonable performance, mobile clients, need implement quite few extensions.

if you, recommend integrating existing open-source imap server implementation. if have fancy storage backend, perhaps can write plugin dovecot or cyrus.

if decide reimplement , first complex project, end product subtly broken in numerous ways. if goal able add "speaks imap" phrase sales brochure, well, work, in practice, solving interoperability problems in next 5 years @ least.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -