Scan / Search an IMAP server?

Hi all,
is there a way to search an IMAP/IMAPS server? Basically search through eMails with Devonagent instead of an eMail client?

Can on write a module or scanner for that?

Thanks a lot in advance,

No there is no such plugin available for DEVONagent. And crafting one would likely be difficult and a one-off solution.