procmail
[Top] [All Lists]

Re: Showing all env vars

2005-04-20 12:18:04
On Wed, 20 Apr 2005, Dallman Ross wrote:

[...]

I'm unsure about Udi's report that it didn't work on his system,
though.  Hmm.


        Just to be sure ;-)

bela:~/Udi# uname -a
Linux bela 2.4.22-1.2188.nptlsmp #1 SMP Wed Apr 21 20:12:56
  EDT 2004 i686 i686 i386 GNU/Linux
bela:~/Udi# cat .p
VERBOSE=yes
LOGABSTRACT=yes
#LOGFILE=procmail.log
DEFAULT=/dev/null
SHELL=/bin/sh

LOG = `export;`


bela:~/Udi# procmail ./.p
procmail: [20277] Wed Apr 20 21:33:42 2005
procmail: Assigning "LOGABSTRACT=yes"
procmail: Assigning "DEFAULT=/dev/null"
procmail: Assigning "SHELL=/bin/sh"
procmail: Executing "export;"
procmail: Assigning "LOG=export COMSAT="no"
export DEFAULT="/dev/null"
export HOME="/root"
export HOST="bela"
export LINEBUF="2048"
export LOCKEXT=".lock"
export LOGABSTRACT="yes"
export LOGNAME="root"
export MAILDIR="."
export MSGPREFIX="msg."
export OLDPWD
export ORGMAIL="/var/spool/mail/root"
... ...



balon~> uname -a
SunOS balon 5.9 Generic_117171-05 sun4u sparc SUNW,Sun-Fire-V240
balon~> cat ./.p
VERBOSE=yes
LOGABSTRACT=yes
#LOGFILE=procmail.log
DEFAULT=/dev/null
SHELL=/bin/sh

LOG = `export;`

balon~> procmail ./.p
procmail: [21017] Wed Apr 20 21:34:42 2005
procmail: Assigning "LOGABSTRACT=yes"
procmail: Assigning "DEFAULT=/dev/null"
procmail: Assigning "SHELL=/bin/sh"
procmail: Executing "export;"
procmail: Assigning "LOG="
procmail: Assigning "LASTFOLDER=/dev/null"
procmail: Opening "/dev/null"
Folder: /dev/null 0
balon~>


        Notice that I used the command "export" which common in       all
        the SH family.  If you have no problem with performance and
        you want to use the rc file on any machine with no special
        preparations I recommend to use the "not elegant" way :-(

Bye,
 Udi

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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