[Mimedefang] add boilerplate not working as expected

J.D. Bronson jbronson at wixb.com
Sun Oct 3 09:23:29 EDT 2004


At 09:15 PM 10/2/2004, you wrote:
>On Sat, 2004-10-02 at 16:35, J.D. Bronson wrote:
> >      if ($RelayAddr =~ "^192\.168\.1" or "^127\.0\.0\.1") {
>
>Try this instead:
>if ($RelayAddr =~ "^192\.168\.1" or $RelayAddr eq "127.0.0.1") {
>
>The error is that "or" binds two conditional statements. In your
>example, it was seeing this as:
>
>statement 1: $RelayAddr =~ "^192\.168\.1"
>OR
>statement 2: "^127\.0\.0\.1"
>
>Richard


Richard -

this still didnt work. We did some tests and as expected $RelayAddr does 
have 127.0.0.1 in it, but the boilerplate is still NOT being added.

I called a Perl Guru and we tried several options. Nothing worked. As long 
as I dont specify an IP or IP range to check by, the boilerplate works...

I have removed the idea and simply gave up. Thanks for trying to help though..





-- 
J.D. Bronson
Aurora Health Care // Information Services // Milwaukee, WI USA
Office: 414.978.8282 // Email: jd at aurora.org // Pager: 414.314.8282



** DISCLAIMER **
Per Anti-Virus Policy, this email has been scanned for viruses.
Scanned clean by F-PROT ANTIVIRUS 4.4.6 - http://www.f-prot.com 



More information about the MIMEDefang mailing list