The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
validating 10. IP address any way possible nrodolfich Shell Programming and Scripting 1 02-28-2006 12:58 PM
Validating date in sas radhika03 Shell Programming and Scripting 1 09-16-2005 02:33 AM
Check sendmail is not receiving any emails Kinki Shell Programming and Scripting 6 02-23-2005 09:28 PM
Validating $1 and $2 before using nhatch Shell Programming and Scripting 6 09-17-2003 10:01 AM
validating userid giannicello UNIX for Dummies Questions & Answers 2 05-07-2003 01:13 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-14-2007
Registered User
 

Join Date: Nov 2007
Posts: 2
Help me in receiving,validating emails and save them in local directory

hi,
I'm working on a project where I get mails from different customers, what I need to do is I need to check if it is genuine mail and if there is any attachment I need to validate them and extract the message and save in the local directory as a text file say and then I need to direct it to appropriate department. Everything is to be automated. Please let me know if this is possible and also could you please send me some useful links.
Reply With Quote
Forum Sponsor
  #2  
Old 11-14-2007
Yogesh Sawant's Avatar
Part Time Moderator and Full Time Dad
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 798
have you tried searching here?
Reply With Quote
  #3  
Old 11-15-2007
Registered User
 

Join Date: Nov 2007
Posts: 2
hi,
I need to know if there is any way to receive the mail, validate if it is the authorised user and then save the message as a text file in the unix if i'm using exchange server?
Reply With Quote
  #4  
Old 11-15-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Quote:
Originally Posted by sudharsanc View Post
i'm using exchange server?
How do you normally read your emails?

What local directories are you refering to?

Why do you want to store all attachments as text files, and what does that mean?

My preference for automatically reading from Microsoft Exchange Server is to use MAPI-2, alas normally only available for Windows.
Reply With Quote
  #5  
Old 11-20-2007
Read Only
 

Join Date: Jul 2007
Posts: 15
Why not setup a mail server in unix?
Then it could be sent straight there!!!
And then you could do something like below:
To point you in the right direction -
You can use /etc/mail/aliases to redirect mail to a script or executable. At that point you will have to parse through it to do everything you've asked.

It sounds like quite an undertaking! I'm sure there are commercial products out there that do similar, but I don't know of any.

Ther format for the aliases file is:

nobody : /my/super_script.sh

This will pass the email to super_script.sh as stdin. I'd love to see the script when you're done with it!

I'm not sure exactly what you are trying to do, but this might be a case, that just because you CAN do it, doesn't mean it SHOULD be done.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
mail

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0