Project

General

Profile

Mailer do not mail specific issue changes

Added by clawfrown clawfrown over 15 years ago

I'd like that if i change tracker or version of the issue there should not be any mail sent on this changes to anybody.
Where do I set it up? I know there is no such a setting in redmine.. but i believe there must be kind of .rb file that can be modified. Which file?


Replies (2)

Override deliver method to prevennt from sending an email when category or version of the issue changed - Added by clawfrown clawfrown over 15 years ago

I've found in mailer.rb the following text:

 # Overrides default deliver! method to prevent from sending an email
  # with no recipient, cc or bcc
  def deliver!(mail = @mail)
    return false if (recipients.nil? || recipients.empty?) && 
                    (cc.nil? || cc.empty?) &&
                    (bcc.nil? || bcc.empty?)
    super
  end

Can I add something here so that when version or cantegory of the issue is changed - the mail is not sent?

P.S.
I consider category and version of the issue are parameters just for the manager to analyze issues, there is no need for users to pay great attention on the changes of that.

RE: Mailer do not mail specific issue changes - Added by Jan Ivar Beddari over 15 years ago

I don't think its currently possible, and that code doesn't seem relevant. Sorry I can't be of any more help, I've just started digging into Redmine myself.

    (1-2/2)