Subject: help on .forward

From: Sapan Goel <[email-masked]>
Date: Sat, 17 Jan 1998 11:23:18 +0530 (IST)

Hello all technical masters,

I am facing problem while forwarding my mails to some executable program.
I want to develop the filter and for that i need to forward all the
incoming mails to some executable program.
For this i had written the line 
|"/home/sapan/a.out"
in my .forward file....
where a.out is the executable program..

Although it is forwarding the mails to the program but the returned mail
is also generated specifying that unknown mailer error and cann't forward
mail to 
/home/sapan/a.out@localhost

Thanks,

******************************************************************************
	                   SAPAN GOEL                               \\\|||///
                  FINAL YEAR B.E. COMPUTER SCIENCE 	            =========
	          MOTILAL NEHRU REGIONAL ENGG. COLLEGE	          - | O   O |
					                         / \  \ @'/
#55,MALVIYA HOSTEL.					          #   _| |_
M.N.R.E.C.                       			         (#) ( ) ( )
ALLAHABAD.                       			          #\//|* *|\\
UTTARPRADESH.                     			          #\/(  *  )/
INDIA.                       				          #   =====
PIN-211004.                       			          #   (\|/)
                                                                  #   || ||
                 E-MAIL: [email-masked]               #.--'| |---.
           <http://members.tripod.com/~SapanG/index.html>         #'---' ----'
******************************************************************************

---

From: "Robin S. Socha" <[email-masked]>
Date: Sat, 17 Jan 1998 12:38:50 +0100 (CET)

On Sat, 17 Jan 1998, Sapan Goel wrote:

> incoming mails to some executable program. For this i had written the line
> |"/home/sapan/a.out"  in my .forward file.... where a.out is the
> |executable program..

Why arent't you using procmail right away, Sapan? Its language provides for
exactly these tasks. Take a look at Nancy McGough's mail filtering faq.
BTW, your signature is way too large.

Cheers,
Robin
-- 
hdd broken - remove sushi in from line :-(

---

From: Edward M Greshko <[email-masked]>
Date: Sun, 18 Jan 1998 12:23:49 +0800 (GMT)

> where a.out is the executable program..

Try:

"|/home/sapan/a.out"

as the position of the " marks can be significant.

If that fails, then try something like:

"|exec /home/sapan/a.out"

However, be advised that sometimes systems are configured to not allow 
delivery to "|".  You should also worry about possible abuse.

If what you want to develop a mail delivery program....then take Robin's
suggestion and get procmail.  They have already done the job and taken
into account most of the worries.

Regards,
Ed

-- 
Edward M. Greshko                  Technical Manager, Electronic Commerce
                                   Control Data Asia/Pacific Region
PGPKey-ID:CA3AFA5D  Fingerprint: 2DE6 5527 144E D1BC  3C55 9FA5 518E 52EE