The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-27-2004
EOD EOD is offline
Registered User
  
 

Join Date: Nov 2004
Posts: 1
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
  #2 (permalink)  
Old 11-27-2004
Neo's Avatar
Neo Neo is online now Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,667
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0