Deletemailings.CleanMailing should use modified_date to select drafts to delete
Original issue https://github.com/JMAConsulting/biz.jmaconsulting.deletemailings/issues/2
From Semsey Sandor:
Currently Deletemailings.CleanMailing deletes draft mailings which was created before X days. With this operation, the following can happen:
- I (as a user) create a draft mailing
- I forget about it for x-1 days
- Then I remember to continue the draft with plans to finish and send it in a few days
- he next day my draft is deleted by Deletemailings.CleanMailing and I'm suprised
So I propose to change CleanMailing to delete draft mailings which was last modified before x days.
I know it's a change of contract, but it would only delete certain drafts later (which was recently modified) and this operation is more natural: it deletes drafts which were not touched for a long time.
Note: I'm happy to open a PR if this is accepted