Delete original after forwarding
I have read several posts about this. The first solution, that is to delete the actual email account and keep only the forwarder is not an option.
Creating filters for each account is also not an option since we are talking about 700+ accounts out of a total 1200.
So that leaves me with the solution of a cron job that would delete inbox content for these 700+ accounts, correct? Any other suggestions are welcome.
Where should I be looking? What should be removed? Remember that I need to delete the inboxes of certain accounts, not everyone's.
So scripting is crucial, I guess. Has anyone seen anything that works like that?
Best regards,
Manos K
-
Hello :) You will likely need to manually compile a list of all of the email accounts that you to remove emails from when developing your custom script, unless there is some kind of matching pattern you can use to group the accounts (e.g. accounts starting with a specific letter). Once you have a list, you could develop a script similar to what's utilized on this thread: Having issues getting cron job to work Thank you. 0 -
thanks for that! In the meantime, I created a txt file with all accounts that are forwarded and then I compiled a script that deletes the inbox (cur) for these accounts. The script is run once a week. 0 -
Is it possible to share the script here? 0 -
Sure, here it is The format for the txt file is: username;domain;user; where username is the master account username and user is the email account username. You can run this via cron as often as you wish. 0
Please sign in to leave a comment.
Comments
4 comments