I'm trying to get my cyrus-imapd-2.0.16 installation to call a php script on incomming mails.
I've added something like: system ( "/notify.php user mailbox message" ); to the imap/notify_no.c but now sendmail always says cyrus exited with EX_TEMPFAIL. How can I get notify_no.c to call my script without EX_TEMPFAILING? And is there a way to check how many messages are in the mailbox cyrus is delivering to? It would be nice if I could only call my PHP script for the first message that is in the mailbox. Thanks.