Is there a way to suppress notifications of my own posts?

I am an assigned user and the auto subscribed user. Every time I reply to a client I also get an email.

Comments

jeremy’s picture

Category: support » feature

This is not currently possible. Marking as a feature request.

OnkelTem’s picture

Is there a dirty quick solution?
My clients are irritated with notifications on their own posts.
Help please, provide some info.

OnlineWD™’s picture

rsevero’s picture

Status: Active » Needs review
StatusFileSize
new736 bytes

Inspired by the code available at http://drupal.org/node/917462#comment-3548046 I created the attached patch.

With it the author of the comment won't be notified.

This patch is against current dev code.

rsevero’s picture

Please disregard the previous patch and review this one instead as the previous one was preventing the notification of the author of the ticket update but wasn't preventing the message informing that such notification was send.

This patch prevents both the notification itself and the message mentioning such notification.

jeremy’s picture

Status: Needs review » Needs work

This needs to be configurable.

rsevero’s picture

Ok. I understand that there might be use cases where notifying the user that did the update himself would be desirable. At least in theory I understand as I can't picture such a situation myself.

I'm not sure I will be able to work on this soon as I'm no verge of holidays traveling.

rsevero’s picture

Status: Needs work » Needs review
StatusFileSize
new2.55 KB

Here is a new version of the patch making this new feature configurable.

The default is maintain current behaviour.

AntiNSA’s picture

when is this going to be rolled?

jeremy’s picture

Status: Needs review » Needs work

It will need to be a per-user option first. I have a need for this myself, so likely sooner (days-weeks) than later (weeks-months).

mrtoner’s picture

Unfortunately, this still hasn't made it in. It also appears that the suggested solutions are more complicated than they need to be:

function support_notification($comment = array(), $nid, $op = 'ticket_comment_new', $suppress = FALSE) {
  if (variable_get('support_notifications', TRUE)) {
    $result = db_query('SELECT uid FROM {support_assigned} WHERE nid = %d', $nid);
    while ($account = db_fetch_object($result)) {
      // Don't notify the person updating the ticket.
      if ($comment->uid == $account->uid) {
        continue;
      }
      $account = user_load(array('uid' => $account->uid));
...

Now, it's my opinion that this doesn't need to be a configurable option. The person updating the ticket knows they updated the ticket and the update is right there on the screen. (Or in their sent messages.) Also, we get into preference creep, which arguably makes the module more difficult to configure.

However, if you still require this, Jeremy, how about adding a checkbox to the comment form, unchecked by default, for a "Send me a copy of this update" option? Nothing to configure, nothing gets saved to the db, but the functionality is the same.

mrtoner’s picture

Status: Needs work » Needs review
StatusFileSize
new2.36 KB

Let me know if I'm on the right track here. There are probably some considerations for anonymous users to be made.

Wergles’s picture

Version: 6.x-1.x-dev » 6.x-1.8
Component: User interface » Code
Assigned: Unassigned » Wergles
StatusFileSize
new2.26 KB

I've regenerated the patch against 6.x-1.8 so it gets applied with no fuzz and no offset.

Cheers.

purencool’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)