niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Exim
condition help
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Alexandre Busquets
*nix forums beginner


Joined: 08 Apr 2006
Posts: 18

PostPosted: Thu Jul 20, 2006 10:50 pm    Post subject: condition help Reply with quote

What's wrong?

condition = ${if { {match {$h_X-ACL-Warn:}{.*malware.*} } {yes}{no} }
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Tony Finch
*nix forums Guru


Joined: 22 Mar 2002
Posts: 1222

PostPosted: Thu Jul 20, 2006 10:56 pm    Post subject: Re: condition help Reply with quote

On Fri, 21 Jul 2006, Alex wrote:

Quote:
What's wrong?

condition = ${if { {match {$h_X-ACL-Warn:}{.*malware.*} } {yes}{no} }

You have spurious braces. Exim is very specific about where they are
allowed.

condition = ${if match{$h_X-ACL-Warn:}{.*malware.*} }

Tony.
--
<fanf@exim.org> <dot@dotat.at> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Marc Perkel
*nix forums Guru


Joined: 27 Jan 2005
Posts: 502

PostPosted: Thu Jul 20, 2006 11:23 pm    Post subject: Re: condition help Reply with quote

Alex wrote:
Quote:
What's wrong?

condition = ${if { {match {$h_X-ACL-Warn:}{.*malware.*} } {yes}{no} }


Actually this should work:

condition = ${if {match {$h_X-ACL-Warn:}{malware} {yes}{no} }



--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Tony Finch
*nix forums Guru


Joined: 22 Mar 2002
Posts: 1222

PostPosted: Thu Jul 20, 2006 11:25 pm    Post subject: Re: condition help Reply with quote

On Thu, 20 Jul 2006, Marc Perkel wrote:
Quote:

Actually this should work:

condition = ${if {match {$h_X-ACL-Warn:}{malware} {yes}{no} }

No. There's still a spurious {.

Tony.
--
<fanf@exim.org> <dot@dotat.at> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 7:40 pm | All times are GMT
navigation Forum index » Apps » Exim
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Per domain ACL condition Jason Stanley Exim 1 Tue Jul 11, 2006 7:22 am
No new posts Global "except" condition erniedude@gmail.com python 3 Mon Jul 10, 2006 10:55 pm
No new posts auth allow,deny with condition... George Georgalis Apache 0 Fri Jul 07, 2006 8:02 pm
No new posts Why isn't this filter condition matching? Ross Boylan Exim 1 Thu Jul 06, 2006 4:56 pm
No new posts Condition rule, matching Subject header peter smith Exim 2 Sun Jul 02, 2006 10:31 pm

Low Interest Credit Card | Internet Advertising | Fast Loans | Xbox Mod Chip | Debt Consolidation
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 1.2406s ][ Queries: 16 (1.1293s) ][ GZIP on - Debug on ]