Defect #43467
openEmail reminder received for closed issue
0%
Description
I have an issue that has been closed for some time now but for which I keep receiving reminders. The rake task works otherwise very well.
This issue is assigned to a team, but it is not the only one.
Have can I debug that ?
I am currently on "6.0.4.stable"
Files
Updated by Go MAEDA 23 days ago
- Status changed from New to Closed
- Resolution set to Invalid
Redmine does not send reminders for closed issues.
In your case, the issue might not actually be considered closed by Redmine. Please check the status is really set as "Closed" in the Issue status page (Administration -> Issue statuses). If that flag is not set, Redmine will still treat the issue as open and include it in reminders.
If your Redmine is customized, that could also affect the behavior. Customizations include installed plugins, local patches, or changes to the core code.
In the standard code, the reminder task clearly filters only open issues. Because of that, a normal, unmodified Redmine should never send reminders for issues that are truly closed.
source:tags/6.0.7/app/models/mailer.rb#L615
scope =
Issue.open.where(
"#{Issue.table_name}.assigned_to_id IS NOT NULL" \
" AND #{Project.table_name}.status = #{Project::STATUS_ACTIVE}" \
" AND #{Issue.table_name}.due_date <= ?", days.day.from_now.to_date
)
Updated by Arnaud Lesauvage 23 days ago
- File clipboard-202511140845-bj4b3.png clipboard-202511140845-bj4b3.png added
- File clipboard-202511140848-uw1wn.png clipboard-202511140848-uw1wn.png added
Go MAEDA wrote in #note-1:
Redmine does not send reminders for closed issues.
Yes, I know, that's why I open this as a defect.
In your case, the issue might not actually be considered closed by Redmine. Please check the status is really set as "Closed" in the Issue status page (Administration -> Issue statuses). If that flag is not set, Redmine will still treat the issue as open and include it in reminders.
I've been using redmine for about 10 years now, so I know this is not a normal behavior. The issue is marked as closed ("fermé" in French), and this is the "closed" status that I have always been using :

If your Redmine is customized, that could also affect the behavior. Customizations include installed plugins, local patches, or changes to the core code.
It is not customized. I used to have one plugin, but I removed it some time ago during an upgrade.
In the standard code, the reminder task clearly filters only open issues. Because of that, a normal, unmodified Redmine should never send reminders for issues that are truly closed.
I looked directly into the database I found something quite strange : issues.status_id = 8, which is NOT the id of "Fermé" fermé is id = 5 !
So there is a discrepancy between what I see on the issue page and what I see in the database.
I'll try to switch the issue to open and back to closed to see if this fixes the problem.
Updated by Arnaud Lesauvage 23 days ago
Arnaud Lesauvage wrote in #note-2:
I looked directly into the database I found something quite strange : issues.status_id = 8, which is NOT the id of "Fermé" fermé is id = 5 !
So there is a discrepancy between what I see on the issue page and what I see in the database.
I'll try to switch the issue to open and back to closed to see if this fixes the problem.
Sorry, I looked into the wrong database (old backup). status_id is 5 for this issue, so I still don't know where the problem comes from.
Updated by Arnaud Lesauvage 20 days ago
Another one, and this one is not even assigned to me ! I blurred the assignee for privacy, but it is not I !
Note that this is not a new reminder, I've been reminded for this task for some time but only realized it today :

Updated by Arnaud Lesauvage 20 days ago
I removed the due date for these tasks to see if it could stop them from coming in my reminder emails, but of course this is no real fix.