[feature request] implement email_destroy_post.sh

jaset

Verified User
Joined
Oct 28, 2010
Messages
5
Location
United Kingdom
Hi,

I'd like to request that email_destroy_post.sh be implemented as a new script hook. This could be used for example, to remove squirrelmail preferences/address books once the email account has been deleted.

I'm aware that email_destroy_pre.sh exists, but ideally, such removing of files should only be performed after the email account has been successfully removed by DA, therefore a post hook is required.

Regards,

Jase.
 
Hello,

Added to the versions system. I've also added it to the code, so will be available for 1.38.0.

As for the SquirrelMail preference and address book.. DA should already be removing them for you.

It tries to delete:
/var/www/html/squirrelmail/data/[email protected]
/var/www/html/squirrelmail/data/[email protected]
/var/www/html/squirrelmail/data/[email protected]
/var/www/html/squirrelmail/data/[email protected]

Let me know if it's not. (double check the version of DA you're using too, since the above code hasn't been there forever)

John
 
No, it doesn't. That would be implemented with the backup/restore (after we learn how that database is setup)

John
 
Hello,

Added to the versions system. I've also added it to the code, so will be available for 1.38.0.

[SNIP]

Let me know if it's not. (double check the version of DA you're using too, since the above code hasn't been there forever)

John

Hi John,

Thanks for adding that.

I've just checked with DA 1.38.3 (FreeBSD 8.2 x64) - if you delete a reseller, the squirrelmail files for any users under that reseller are not getting cleaned up. This is what I was seeing originally which prompted me to ask about adding the email_destroy_post.sh hook.

If you need any further info, please let me know.

Regards,

Jase.
 
Back
Top