External user on notification list copied on emails sent by them
Bug #1073593 reported by
Cyrus Wadia
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eventum |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
Eventum v 2.3.3
If an external user on the notification list of an issue sends an email to that issue, it is copied back to them as well.
In eventum 2.1.1 they were excluded from the copy
Logic seems to have changed between 2.1.1 and 2.3.3 to allow for internal users to opt to get copies, but seems to have broken the logic for external users
class.notificat
To post a comment you must log in.
// ==
//
// The v2.3.3 code was ONLY evaluating against Eventum Users.
// This is how I fixed the issue on my system.
//
if (!empty($email)) {
// don't send the email to the same person who sent it unless they want it
if ($sender_usr_id != false) { get($sender_ usr_id) ; $prefs[ 'receive_ copy_of_ own_action' ][$prj_ id])) {
$prefs[ 'receive_ copy_of_ own_action' ][$prj_ id] = 0;
// Check Eventum users preference
$prefs = Prefs::
if (!isset(
}
}
if (
($sender_ usr_id != false) &&
($prefs[ 'receive_ copy_of_ own_action' ][$prj_ id] == 0) &&
( !empty( $users[ $i]["sub_ usr_id" ])) &&
( $sender_ usr_id == $users[ $i]["sub_ usr_id" ])
( strtolower( Mail_Helper: :getEmailAddres s($email) ) == $sender_email)
// Eventum User *OR* External Address
(
// Check Eventum User
) ||
(
// Check for External Addresses
)
) {
continue;
}
//}
$emails[] = $email;
}
// ==