preparation for 3g email contacts
This commit is contained in:
parent
52137859eb
commit
f4cd9bd2d8
|
@ -626,7 +626,13 @@ function notifier_run($argv, $argc){
|
||||||
$reply_to = $r1[0]['reply_to'];
|
$reply_to = $r1[0]['reply_to'];
|
||||||
|
|
||||||
$subject = (($it['title']) ? $it['title'] : t("\x28no subject\x29")) ;
|
$subject = (($it['title']) ? $it['title'] : t("\x28no subject\x29")) ;
|
||||||
|
|
||||||
|
// only expose our real email address to true friends
|
||||||
|
|
||||||
|
if($contact['rel'] == CONTACT_IS_FRIEND)
|
||||||
$headers = 'From: ' . $local_user[0]['username'] . ' <' . $local_user[0]['email'] . '>' . "\n";
|
$headers = 'From: ' . $local_user[0]['username'] . ' <' . $local_user[0]['email'] . '>' . "\n";
|
||||||
|
else
|
||||||
|
$headers = 'From: ' . $local_user[0]['username'] . ' <' . t('noreply') . '@' . $a->get_hostname() . '>' . "\n";
|
||||||
|
|
||||||
if($reply_to)
|
if($reply_to)
|
||||||
$headers .= 'Reply-to: ' . $reply_to . "\n";
|
$headers .= 'Reply-to: ' . $reply_to . "\n";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user