Closed diegoforrini closed 11 years ago
Hi diegoforrini,
"XXX mismatch" is not error message. This message outputs when value is matched for rule. ; So, "mismatch" is wrong ... I will fix it.
On your log, it seems that no mail has sent because no rules has matched I think, [User] has mismatched. You should specify login name of author for [User]. Reconfirm the rules for issues.
Thank you for the answer. Maybe I didn't understand the plugin usage. I try to explain what I need with an example: I have a little project with three users (login, role):
I want that the manager receive a notification when a Bug is in a New state. Then I create a Recipient with only the address of the Manager (diego) and I call it MyRecipient. I create a rule with: Tracker - Bug Issue status - New User - luca Recipient - MyRecipient
Then, when luca open a Bug in a New state on the project a mail should be sent to diego, but the mail is only sent to luca (if he didn't selected "I don't want to be notified of changes that I make myself" from its account settings).
That setting is correct for your purpose. If mail address of diego were not wrong, the mail is expected to be sent to diego.
Incidentally, it is normal that luca has received mail. Because redmine make notify to author of issues, and rewriting by mailwrapper includes the original recipients (but ignore duplicates).
Try followings:
Regards,
I had already tried with that settings and but the recipient is only luca. Maybe the problem is about the notification option, in fact diego has: "Only for things I watch or I'm involved in". In the example is not directly involved, because he is only a member of the project, but I think that the plugin should be independent on the user settings (maybe I'm wrong).
Thank you again.
I think that I found the solution.
I've changed the line 18 of "lib/mailwrapper/util.rb"
from
next if (! r.issue_statuses.empty? and r.issue_statuses.select {|s| s.id == flag[:statuses]}.empty?)
to
next if (! r.issue_statuses.empty? and r.issue_statuses.select {|s| s.id == flag[:status]}.empty?)
because in the rewrite_issue function there is a reference to status
and not statuses
(line 61 of the util.rb file -> :status => issue.status_id,
)
It's the first time that i see an rb file so maybe I made a mistake, but now everything works fine for me.
Best regards
Thanks for your report. Since it's just a typo, I've fixed it like yours.
Regards
Hi
I've tried to install the plugin following the standard of redmine (rake redmine:plugins:migrate RAILS_ENV=..., restarting the server...). I've enabled the module for one project and gone to the settings tab.
I have no problems creating sender, recipient and rule, but when I create a new Issue that follow the rule the mail is not sent. I obtain always the same errors coming from `util.rb' (tracker and category mismatch). This is the log:
I'm using Redmine on Windows provided by Bitnami (http://bitnami.com/stack/redmine/installer)
Environment: Redmine version 2.3.0.stable Ruby version 1.9.3 (i386-mingw32) Rails version 3.2.13 Environment production Database adapter Mysql2 Redmine plugins: redmine_mailwrapper 0.1.2
Thanks for the plugin.