Add a hook which will be invoked just before deleting a mail. This can be useful in case attachments are stored in the file system instead of the table in the database. Before deletion of the mails, you should be able to clean up the files of attachments which are not used any longer.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mail_safety-deletion_hook-2937698-2.patch | 1.2 KB | sjerdo |
Comments
Comment #2
sjerdoAdded a patch which implements this hook.
Comment #3
Anonymous (not verified) commentedLooks good.
Comment #5
barthje commentedThanks for the patch!