![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| man aliases | Pipa | UNIX for Dummies Questions & Answers | 2 | 09-19-2007 07:55 AM |
| /etc/mail/aliases | Kumarsharad | Shell Programming and Scripting | 1 | 07-16-2007 02:57 AM |
| sendmail aliases not being honored | dangral | UNIX for Advanced & Expert Users | 13 | 01-11-2006 03:48 PM |
| aliases | BG_JrAdmin | UNIX for Dummies Questions & Answers | 1 | 11-30-2005 11:53 PM |
| aliases | mluey61 | High Level Programming | 1 | 04-19-2005 12:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I'm trying to make a script that will automatically read incoming mail, parse the recipient, then send a file off to the recipient.
(Name of file = mail.pl) #!/usr/bin/perl $mailDir = "/var/spool/mail/" $user = print `cat <STDIN> | grep To: | cut -b5-`; print `elm -s Awaiting Mail $user < /tmp/alert"; And the entry in the aliases file goes: test: "| /home/mail/mail.pl" is that correct aswell? |
|
||||
|
a standard way to filter incoming mail is to configure procmail. It's easy & really usefull. and with procmail you can handle the problem you face perfectly than a perl script.
for more info man procmail & man procmailex |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|