View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0024224 | mantisbt | public | 2018-04-04 13:35 | 2018-04-04 23:35 | |
Reporter | cbspencer | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | duplicate | ||
Platform | x86_64 | OS | Linux/GNU | OS Version | 2.6 |
Product Version | 2.11.1 | ||||
Fixed in Version | 2.13.0 | ||||
Summary | 0024224: Stale emails can remain queued for years | ||||
Description | This problem was originally found in v1.2.18, but it appears that it could still occur in v2.11.1 (although we have not seen it in our v2.11.1 installation). While investigating some email issues in Mantis, we noted that there were a few emails that had been enqueued in 2013 but still had not been sent in 2018, despite Mantis trying to sent them every time any tickets were emailed. The problem was that one of the email addresses to which these "stale" emails were to be sent was incorrectly formatted (unknown why). Every time Mantis tried to sent these emails, it failed, and they were left in the queue to be sent later. Repeat, ad infinitum. We implemented a solution which checked if email had been queued for more than 30 days, and if so, delete it from the queue. I provide details of our solution in the Additional Information section below, in case it is of use to the Mantis dev team. Or perhaps some other solution can be implemented to prevent "unsendable" emails from remaining in the email queue indefinitely. | ||||
Steps To Reproduce | Unknown. Perhaps try to sent a Mantis email to an incorrectly-formatted email address. | ||||
Additional Information | In ./core/email_api.php, function email_send_all, make the following change (i.e. the else clause) to dequeue emails which have not been sent within 30 days:
} | ||||
Tags | No tags attached. | ||||