1 --- dokuwiki-rc2010-10-07/inc/common.php~ 2010-10-07 21:34:10.000000000 +0300
2 +++ dokuwiki-rc2010-10-07/inc/common.php 2010-10-07 21:36:02.099167786 +0300
4 $from = str_replace('@NAME@',$INFO['userinfo']['name'],$from);
5 $from = str_replace('@MAIL@',$INFO['userinfo']['mail'],$from);
7 - mail_send($to,$subject,$text,$from,'',$bcc);
9 + // add mail headers to identify page changes in same mail thread
10 + $file = wikiFN($id);
11 + $cur = @filemtime($file);
12 + $headers['Message-Id'] = "$id?rev=$cur";
14 + $headers['In-Reply-To'] = "$id?rev=$rev";
17 + foreach ($headers as $k => $v) {
18 + $h .= sprintf("%s: %s%s", $k, $v, MAILHEADER_EOL);
21 + mail_send($to,$subject,$text,$from,'' ,$bcc, $h);