procmail
[Top] [All Lists]

howto capture envelope sender/recipient/etc in .procmailrc?

2001-11-01 22:36:20
Greetings,

Procmail is configured as the local mailer on this Sendmail server
with the following in the /etc/sendmail.cf:

Mprocmail,      P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31,
                T=DNS/RFC822/X-Unix,
                A=procmail -Y -m $h $f $u

Mlocal,         P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40,
                A=procmail -Y -a $h -d $u

In my .procmailrc I'm trying to capture the "$h $f $u" envelope
information like so:

  NO1 = $1
  NO2 = $2
  NO3 = $3
  :0:
  |/usr/bin/env > env

However, `env' contains empty values for the above three variables:

  [...]
  PROCMAIL_VERSION=3.14
  SENDMAILFLAGS=-oi
  SENDMAIL=/usr/sbin/sendmail
  NO1=
  NO2=
  NO3=

  etc..

What am I doing wrong?

Regards,
Graham


__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>