diff options
author | friendica <info@friendica.com> | 2011-12-23 01:44:03 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-23 01:44:03 -0800 |
commit | f4cd9bd2d82e5647b63d7bb379b51c57066891ec (patch) | |
tree | 99156722785a2966a4a7479b1f9888782f1638ba | |
parent | 52137859ebf642461396ae09ff752ecd8ba850b2 (diff) | |
download | volse-hubzilla-f4cd9bd2d82e5647b63d7bb379b51c57066891ec.tar.gz volse-hubzilla-f4cd9bd2d82e5647b63d7bb379b51c57066891ec.tar.bz2 volse-hubzilla-f4cd9bd2d82e5647b63d7bb379b51c57066891ec.zip |
preparation for 3g email contacts
-rw-r--r-- | include/notifier.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/notifier.php b/include/notifier.php index 2562f09eb..1db1b09da 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -626,7 +626,13 @@ function notifier_run($argv, $argc){ $reply_to = $r1[0]['reply_to']; $subject = (($it['title']) ? $it['title'] : t("\x28no subject\x29")) ; - $headers = 'From: ' . $local_user[0]['username'] . ' <' . $local_user[0]['email'] . '>' . "\n"; + + // 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"; + else + $headers = 'From: ' . $local_user[0]['username'] . ' <' . t('noreply') . '@' . $a->get_hostname() . '>' . "\n"; if($reply_to) $headers .= 'Reply-to: ' . $reply_to . "\n"; |