Re: [Mimedefang] add boilerplate not working as expected
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: [EMAIL PROTECTED] // 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 ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
Re: [Mimedefang] add boilerplate not working as expected
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 signature.asc Description: This is a digitally signed message part ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
[Mimedefang] add boilerplate not working as expected
I just want to add a boilerplate for OUTGOING email (not incoming). I have this working (almost) == } if ($RelayAddr =~ "^192\.168\.1" or "^127\.0\.0\.1") { append_text_boilerplate($entity, $boilerplate, 0); action_add_header('X-Disclaimer-Added', "YES"); } == This is not working for email that the relay=localhost [127.0.0.1] but what I do see is the 'add_header' part works for localhost email... Can someone tell me what I did wrong? - why one part is added and the other is not? -if mail is submitted to MD from a different machine on the same LAN, the boilerplate and the add_header both work. It is only localhost generated email that is acting up... thanks in advance! -- J.D. Bronson Aurora Health Care // Information Services // Milwaukee, WI USA Office: 414.978.8282 // Email: [EMAIL PROTECTED] // Pager: 414.314.8282 ___ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang