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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 03:58 PM
Validating date in sas radhika03 Shell Programming and Scripting 1 09-16-2005 06:33 AM
Check sendmail is not receiving any emails Kinki Shell Programming and Scripting 6 02-24-2005 12:28 AM
Validating $1 and $2 before using nhatch Shell Programming and Scripting 6 09-17-2003 02:01 PM
validating userid giannicello UNIX for Dummies Questions & Answers 2 05-07-2003 05:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-15-2007
sudharsanc sudharsanc is offline
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.
  #2 (permalink)  
Old 11-15-2007
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
have you tried searching here?
  #3 (permalink)  
Old 11-15-2007
sudharsanc sudharsanc is offline
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?
  #4 (permalink)  
Old 11-15-2007
porter porter is offline Forum Advisor  
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.
  #5 (permalink)  
Old 11-20-2007
edcrosbys edcrosbys is offline
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.
Closed Thread

Bookmarks

Tags
mail

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 03:19 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