summaryrefslogtreecommitdiff
path: root/database.php
diff options
context:
space:
mode:
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-05-29 05:14:50 +0000
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-05-29 05:14:50 +0000
commit1d33c70c0e791bed95138a2d6f2d1f901642ba5e (patch)
treee618a5d8af323f9c794149f9148b0eb089ca9d85 /database.php
parented0a6f42d5786b6a4945276c639528fa79d85c4f (diff)
downloadcacert-boardvoting-1d33c70c0e791bed95138a2d6f2d1f901642ba5e.tar.gz
cacert-boardvoting-1d33c70c0e791bed95138a2d6f2d1f901642ba5e.tar.xz
cacert-boardvoting-1d33c70c0e791bed95138a2d6f2d1f901642ba5e.zip
add email threading headers
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@46 d4452222-2f33-11de-9270-010000000000
Diffstat (limited to 'database.php')
-rw-r--r--database.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/database.php b/database.php
index e51d64a..ec501e9 100644
--- a/database.php
+++ b/database.php
@@ -80,13 +80,18 @@ Kind regards,
the voting system.
BODY;
- $this->notify("Re: ".$decision['tag']." - ".$decision['title'],$body);
+ $this->notify("Re: ".$decision['tag']." - ".$decision['title']." - finalised",$body,$decision['tag']);
}
}
}
- function notify($subject,$body)
+ function notify($subject,$body,$tag,$first=FALSE)
{
- mail($this->board,$subject,$body,"From: Voting System <returns@cacert.org>");
+ if ($first) {
+ $header = "Message-id: <".$tag.">\r\n";
+ } else {
+ $header = "References: <".$tag.">\r\nIn-reply-to: <".$tag.">\r\n";
+ }
+ mail($this->board,$subject,$body,$header."From: Voting System <returns@cacert.org>");
//mail("testsympa@lists.cacert.org",$subject,$body,"From: Voting System <returns@cacert.org>");
}
function auth()