]> git.pld-linux.org Git - packages/dokuwiki.git/blob - dokuwiki-mailthreads.patch
- make friends with smblink plugin; rel 7
[packages/dokuwiki.git] / dokuwiki-mailthreads.patch
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
3 @@ -1009,7 +1009,20 @@
4    $from = str_replace('@NAME@',$INFO['userinfo']['name'],$from);
5    $from = str_replace('@MAIL@',$INFO['userinfo']['mail'],$from);
6  
7 -  mail_send($to,$subject,$text,$from,'',$bcc);
8 +  $headers = array();
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";
13 +  if ($rev) {
14 +      $headers['In-Reply-To'] = "$id?rev=$rev";
15 +  }
16 +  $h = '';
17 +  foreach ($headers as $k => $v) {
18 +      $h .= sprintf("%s: %s%s", $k, $v, MAILHEADER_EOL);
19 +  }
20 +
21 +  mail_send($to,$subject,$text,$from,'' ,$bcc, $h);
22  }
23  
24  /**
This page took 0.250313 seconds and 3 git commands to generate.