> IMHO, the search was only not working because we inserted the headers at > a wrong place. In my case that is true, but in addition my IMAP server is broken. It does not support SEARCH properly. -- Vlad