Skip to content

Commit

Permalink
[jan] Don't send reply messages to guests if disabled in preferences.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jul 10, 2013
1 parent c513dc3 commit ee8b3de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/CHANGES
Expand Up @@ -2,6 +2,7 @@
v3.0.0-git
----------

[jan] Don't send reply messages to guests if disabled in preferences.
[jan] Fix downloading of attachments.
[jan] Add more tests to filter out bounces and auto-replies in the mail parser.
[jan] Hide topbar and sidebar when displaying attachments.
Expand Down
11 changes: 7 additions & 4 deletions lib/Driver.php
Expand Up @@ -485,10 +485,13 @@ public function mail(array $opts)
}

foreach ($opts['recipients'] as $user => $role) {
if ($user == $opts['from'] &&
$user == $GLOBALS['registry']->getAuth() &&
$prefs->getValue('email_others_only')) {
continue;
if ($user == $opts['from']) {
$user_prefs = $GLOBALS['injector']
->getInstance('Horde_Core_Factory_Prefs')
->create('whups', array('user' => $user < 0 ? null : $user));
if ($user_prefs->getValue('email_others_only')) {
continue;
}
}

/* Make sure to check permissions as a guest for the 'always_copy'
Expand Down
2 changes: 2 additions & 0 deletions package.xml
Expand Up @@ -28,6 +28,7 @@
</stability>
<license uri="http://www.horde.org/licenses/bsdl.php">BSD-2-Clause</license>
<notes>
* [jan] Don&apos;t send reply messages to guests if disabled in preferences.
* [jan] Fix downloading of attachments.
* [jan] Add more tests to filter out bounces and auto-replies in the mail parser.
* [jan] Hide topbar and sidebar when displaying attachments.
Expand Down Expand Up @@ -1010,6 +1011,7 @@
<date>2013-06-19</date>
<license uri="http://www.horde.org/licenses/bsdl.php">BSD-2-Clause</license>
<notes>
* [jan] Don&apos;t send reply messages to guests if disabled in preferences.
* [jan] Fix downloading of attachments.
* [jan] Add more tests to filter out bounces and auto-replies in the mail parser.
* [jan] Hide topbar and sidebar when displaying attachments.
Expand Down

0 comments on commit ee8b3de

Please sign in to comment.