I need a simple shell or perl script that can delete bounced eMails in a mailbox.
The server is running Centos OS 5.6 and eMails are located at:
While webp5p is the name of the mailbox.
Message files inside of the folder are named like the following:
[url removed, login to view]
The script should search within the message text for certain criteria and if there is a match the message should be deleted.
Script should search for "hotmail" and "temporary" and all messages including these both keywords should be removed.
Script should search for "block list" and all messages including this keyword will get deleted.
There are a total of 4 task the script should perform to clean up the maildir from bounced eMail messages once per day at a certain time. I can setup a cronjob to execute the script.
I don't know what works best, it's up to you if it's a PHP, Perl or Shell Script.
20 freelancers are bidding on average $107 for this job
Hi ! there I can work for you Just read my profile reviews and check what say others about me I can finish your project within your deadline and budget with 100% of your satisfaction thanks
Hi. I can make a PHP script to do this efficiently and it's also possible to make a shortcut command you can run in SSH or cron. This is a quick and easy task.
It seems like a easily doable task and I'd prefer to go with shell scripting. If there are more complicated patterns that You need then I might consider some other language as well.
If you are looking for a python/shell script to do simple regex maching and remove the files based on that,its an easy [url removed, login to view] can add a cronjob to run it once everyday