1 --- dokuwiki-2008-05-05/inc/common.php~ 2008-11-20 16:13:06.616720562 +0200
2 +++ dokuwiki-2008-05-05/inc/common.php 2008-11-20 16:12:51.042753759 +0200
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);