Everyone,
My script just worked. In addition to calling "exit $retval;" with $retval
being my return code of either 100 or 97, I added the following to my
script:
END {
$? = $retval;
}
And it worked. Looks like "exit" calls any END blocks before quitting the
process - I guess that did the trick. Perhaps it's a Win32 thing, I don't
know - I'm not a Perl guru, just a Network Admin trying to solve a problem.
Thanks for all the help!
Kevin
-----Original Message-----
From: Williams, Kevin [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 12:22 PM
To: '[EMAIL PROTECTED]'
Subject: [xmail] Re: Filters and return codes
Yes, I'm logging @@FROM and the current time to a file when the script is
called.
-----Original Message-----
From: Davide Libenzi [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 11:45 AM
To: '[EMAIL PROTECTED]'
Subject: [xmail] Re: Filters and return codes
On Fri, 12 Jul 2002, Williams, Kevin wrote:
>
> I'm writing a Perl script and using "exit 97" (for example) to return
> a value of 97 (for example), but XMail seems to allow the message to
> continue to the user mailbox anyway. Anyone using filters and Perl
> scripts successfully? If so, could you help me?
are you sure that your script is executed at all ?
- Davide
-
To unsubscribe from this list: send the line "unsubscribe xmail" in the body
of a message to [EMAIL PROTECTED] For general help: send the line
"help" in the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe xmail" in the body
of a message to [EMAIL PROTECTED] For general help: send the line
"help" in the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]