1, // The destination email must match exactly: 'conditions' => array( 'email' => '8ball@php-mail.dd32.id.au' ) ) ); $config['actions'][] = new Mail_Action_Log( array( // The directory to log mail in: 'directory' => dirname(__FILE__) . '/mail/', // Should logged files include the subject in the filename? 'subject-in-filename' => true, // Should email be sorted into folders based on the destination email? 'email-directories' => true, // Run later than 8ball, but still run earlier than default filters (10) 'priority' => 5, // This action should NOT be run on the 8ball email address, note the ! prefix 'condition' => array( 'email' => '!8ball@php-mail.dd32.id.au') ) ); $config['actions'][] = new Mail_Action_Forward( array( // Forward email on to someone else 'destination' => 'somebody@non-existant-host', // But don't forward 8ball emails, OR svn emails 'conditions' => array( 'email' => array( '!8ball@php-mail.dd32.id.au', '!svn@special.php-mail.dd32.id.au' ) ) ) ); $config['actions'][] = new Mail_Action_Execute( array( // Execute a command when re recieve an email // In this case, svnup 'command' => 'svnsync -q sync file:///home/dd32/......', // And only do this for svn emails 'conditions' => array('email' => 'svn@special.php-mail.dd32.id.au') ) ); $config['actions'][] = new Mail_Action_Execute( array( // Execute a svnup on a checkout of the previous sync 'command' => 'svn up /home/dd32/......', // But only do this when it was a email notifying us of a new SVN commit 'conditions' => array('email' => 'svn@special.php-mail.dd32.id.au'), // Run this with a late priority, allows for the svnsync to happen first 'priority' => 20 ) );