The code in notify function suggest that I can configure "From:" field properly, for instance I should be able to use something like: @NAME@ <@MAIL@>. However, configuration script rejects anything what does not look like email for field mailfrom.
I had to make following changes to see emails properly and to be able to setup my email filter:
--- common.php.old 2008-04-21 17:37:31.000000000 +0200
+++ common.php 2008-04-21 17:50:47.000000000 +0200
@@ -975,17 +975,20 @@
$text = str_replace('@DIFF@',$diff,$text);
$subject = '['.$conf['title'].'] '.$subject;
$from = $conf['mailfrom'];
$from = str_replace('@USER@',$_SERVER['REMOTE_USER'],$from);
$from = str_replace('@NAME@',$INFO['userinfo']['name'],$from);
$from = str_replace('@MAIL@',$INFO['userinfo']['mail'],$from);
- mail_send($to,$subject,$text,$from,null,$bcc);
+ mail_send($to,$subject,$text,
+ $INFO['userinfo']['name'].'<'.$from.'>',
+ null,$bcc,
+ 'X-WikiUser: '.$_SERVER['REMOTE_USER']."\n");
}
/**
* extracts the query from a search engine referrer
*
* @author Andreas Gohr <
andi@splitbrain.org>
* @author Todd Augsburger <
todd@rollerorgans.com>
*/