aspose file tools
The moose likes Linux / UNIX and the fly likes Read mail file using script Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply Bookmark "Read mail file using script" Watch "Read mail file using script" New topic
Author

Read mail file using script

sat kat
Greenhorn

Joined: Feb 25, 2003
Posts: 5
I would like to write a unix script using which I need to read all emails (using 'mail' command) and redirect each email to a separate file. I am facing challenges in passing options like 'n' (to go to next message), 'q' (to quit), 'd' (to delete a message) etc to 'mail' command within a script. Is there any ready made script available to handle these kind of interactive commands?

Thanks in advance.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Read mail file using script
 
Similar Threads
problem running sqlplus using Runtime.exec()
Using Unix "grep" command in java...
embedding javascript function in href
Crontab & Procmail problem
any help how to send emails using ant