jcppkkk / redmine_mail_reminder

Plugin for Redmine to create different role based reminders for project(s)
52 stars 32 forks source link

Send email if no issue #76

Open lashnag opened 8 years ago

lashnag commented 8 years ago

Hello! I have email if there is no issues:

Project "certs" with query "п≈п╟п╢п╟я┤п╦ п╢п╩я▐ п╬п╠п╫п╬п╡п╩п╣п╫п╦я▐" [0;94;49m is processing. [0m

lashnag commented 8 years ago

Environment: Redmine version 3.2.3.stable Ruby version 2.2.5-p319 (2016-04-26) [amd64-freebsd10] Rails version 4.2.7 Environment production Database adapter Mysql2

And i see in code comment:

Not Sending email if there are no issues

lashnag commented 8 years ago

1

jcppkkk commented 8 years ago

@lashnag do you see issues when you search the query in redmine?

lashnag commented 8 years ago

2 Yes, but i don't see any addiction

lashnag commented 8 years ago

https://github.com/Hopebaytech/redmine_mail_reminder/blob/master/app/models/mail_reminder_mailer.rb - in this file on 43 i can see check if empty, but i don't khow ruby...

jcppkkk commented 8 years ago

@lashnag yes redmine_mail_reminder will not send mail if the query result has no issue, to prevent user received empty mail with no content. So you need to check if your user(the one want to receive mail) can see any issues in the query page on redmine. if answer is no then mail will not sent.

lashnag commented 8 years ago

Now i set reminder only to send mail to administrators:

Project "certs" with query "Cert issue reminder" [0;94;49m is processing. [0m v.egorov@platron.ru a.lashnev@platron.ru

But the problem is steel there... 1

lashnag commented 8 years ago

I can log some queries if you say where...

lashnag commented 8 years ago

@jcppkkk do you have any ideas? I can log anything...