summaryrefslogtreecommitdiff
path: root/inc/common.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-03-09 12:44:28 +0100
committerAndreas Gohr <andi@splitbrain.org>2012-03-09 12:44:28 +0100
commit9f3eca0b520fc5f689170108fbcbf490d12f2c2e (patch)
tree136343e3f3fe1b2bee92a126639c68aa087780b1 /inc/common.php
parentd2113a3cac4f670858d94dc53de4f653828dac91 (diff)
downloadrpg-9f3eca0b520fc5f689170108fbcbf490d12f2c2e.tar.gz
rpg-9f3eca0b520fc5f689170108fbcbf490d12f2c2e.tar.bz2
Add various headers to the mails FS#2247. pull request #83 closed
Diffstat (limited to 'inc/common.php')
-rw-r--r--inc/common.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/common.php b/inc/common.php
index 5e2bb7c93..79646eadc 100644
--- a/inc/common.php
+++ b/inc/common.php
@@ -1152,6 +1152,13 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){
$mail->bcc($bcc);
$mail->subject($subject);
$mail->setBody($text,$trep,$hrep);
+ if($who == 'subscribers'){
+ $mail->setHeader(
+ 'List-Unsubscribe',
+ '<'.wl($id,array('do'=>'subscribe'),true,'&').'>',
+ false
+ );
+ }
return $mail->send();
}