I've written a small email (imap/pop3/smtp) client daemon on an embedded linux system. I want to be able to notify another daemon when new mail arrives and therefor I'm planning on having a seperate thread for this.

Q1. Which is the most efficient way to see if there is new mail?

My first id� would be to have a search for messages newer than last search because otherwise I would have to rely on flags set on the server (right) and I have to leave messages on pop3 servers.

Q2. Does anybody have any ideas?

Greatful for replies

/Niklas Fondberg

Reply via email to