![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
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. |
|
||||
|
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. |
![]() |
| Bookmarks |
| Tags |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|