![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to monitor process running on server and posting a mail if any process is dead | pradeepmacha | Shell Programming and Scripting | 13 | 03-06-2009 07:33 AM |
| Killing of a process and send a mail if the process doesnot come up within 2 minutes | Prince89 | Shell Programming and Scripting | 1 | 02-15-2008 07:10 PM |
| cron: try script 4 times then send mail and stop | bash100 | Shell Programming and Scripting | 1 | 10-23-2005 02:31 PM |
| Cron Sends mail to root on completion of job. | skotapal | UNIX for Dummies Questions & Answers | 1 | 04-25-2003 04:27 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Process mail using cron
I am looking for information on how to process mail using a cron job. The email server is a hosted ISP, so I simply have a POP connection to the mailbox.
Specifically, I want to fire a cron job at {x} time and have pine, mail, mailx, or some other suitable mail client utility process the current POP mail inbox. Part A is my desire to automatically search for and move some log files to a specific file/folder by grepping out part of the subject line. Part B might be solved better with some spam filtering tool, but I want to automatically delete "spam" email from the mailbox on a scheduled basis. I will be using a "friends" list to filter out any mail domain not specifically authorized to send email to this account. So, can anyone point me in the direction of how to read / process the mail box using something like mailx in a script such that I can accomplish A & B above. Thanks, CM |
|
|||||
|
It might be easier to use an LDA (local delivery agent), like procmail. You can check to see if your ISP uses procmail and, if so, create a local .procmailrc file to accomplish your tasks.
Reference: http://www.redhat.com/docs/manuals/l...-procmail.html |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|