redmine_mail_reminder
redmine_mail_reminder copied to clipboard
Send email if no issue
Hello! I have email if there is no issues:
Project "certs" with query "п≈п╟п╢п╟я┤п╦ п╢п╩я▐ п╬п╠п╫п╬п╡п╩п╣п╫п╦я▐" [0;94;49m is processing. [0m
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 do you see issues when you search the query in redmine?
Yes, but i don't see any addiction
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...
@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.
Now i set reminder only to send mail to administrators:
Project "certs" with query "Cert issue reminder" [0;94;49m is processing. [0m [email protected] [email protected]
But the problem is steel there...

I can log some queries if you say where...
@jcppkkk do you have any ideas? I can log anything...