View Full Version : Help with email.
Sallee-Webdesign
December 18th, 2004, 04:45
I'm on cpanel and have an email account in there that gets about 700 - 800 emails in a 24 hour period.. (not spam all optin).
Is there any way to set up a cron job to delete all of the email out of that account like every 12 hours? I have never tried it and never really used cron jobs before so I have no idea what I'm dealing with. My grandpa is also in the same situation..
any help is welcome or ideas, however I think a cron job would work the best.
Thanks,
Buddy
Pauly
December 18th, 2004, 14:03
If you login to your email account www.yourdomain.com/webmail and choose Horde mail (May get a screen with your data already input after that, just click login), once you have logged in click Inbox then go to Options.
In there is a link bottom centre called 'Maintenance Operations' or something similar. You can use that to setup auto delete etc.
The other webmail clients may havea similar option but I don't use them so I don't know :)
the_pm
December 18th, 2004, 17:29
I've never used CRON either, though I understand it's not particularly difficult to do. Your email is stored in a regular folder, just like everything else on the site. Email is in a single document called inbox (no file extension of which I'm aware) that serves data in a raw form. You could take this file, delete everything in it, save it and store it in it's own place in the mail area via FTP. Then, when you create your CRON job, the operation becomes as easy as copy/paste the empty inbox file over the top of the full one. That would be much easier than having an operation open your inbox in a mail application, select all messages and move them to the trash. Plus, my method would delete them permanently, so you wouldn't have to account for space used by the trash box.
HTH!
Jamie
December 18th, 2004, 17:33
Setting up the Cron is easy, it is the writing and setting up of the cron script that is the hard part. If you can find a script to delete your emails then all you have to do is tell cron to run this script at a certain time each day.
The best way though is to do what Paul R said and use your mail programs in built feature.
vBulletin® v3.6.8, Copyright ©2000-2010, Jelsoft Enterprises Ltd.