[EXIM] filter problem

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Steven A. Reisman
日付:  
To: exim-users
題目: [EXIM] filter problem
Help! I'm trying to create a filter that will catch email with "$$$"
in the Subject header. But I can't seem to figure out how to specify
a literal $.


I have a test email message containing only the header:

Subject: (fwd) Problem sending this message out


TIA

Steve


=====================================================================

# Exim filter

if $h_subject matches "(XXX|!!!|BULK|MONEY)"
then
log "match"
endif

if $h_subject matches "(XXX|!!!|BULK|MONEY|\\$\\$\\$)"
then
log "match"
endif

=====================================================================


>>Final headers:

P Received: from root by hermes.pressenter.com with local (Exim 1.92 #1)
        id 0ykyg8-00082T-00; Sat, 13 Jun 1998 17:21:40 -0500
  Subject: (fwd) Problem sending this message out
I Message-Id: <E0ykyg8-00082T-00@???>
F From: root <root@???>
  Date: Sat, 13 Jun 1998 17:21:40 -0500


Testing Exim filter file xfilter
Filter: start of processing
Match expanded arguments:
Subject = (fwd) Problem sending this message out
Pattern = (XXX|!!!|BULK|MONEY)
Condition is false: $h_subject matches (XXX|!!!|BULK|MONEY)
Match expanded arguments:
Subject = (fwd) Problem sending this message out
Pattern = (XXX|!!!|BULK|MONEY|$$$)
Condition is true: $h_subject matches (XXX|!!!|BULK|MONEY|\$\$\$)
Logwrite "match\n"
At the end of filtering "delivered" is false
Filter: end of processing




-- 
Steven A. Reisman (sar@???)         Duluth/Superior: 715-395-0311
PressEnter!            |  River Falls: 715-426-2100  Menomonie: 715-232-0430
P.O. Box 312           |   Eau Claire: 715-830-1273   LaCrosse: 608-785-1411
421 N 2nd Street       | New Richmond: 715-246-7060   Somerset: 715-246-7060
River Falls, WI  54022 |  Twin Cities: 612-436-5254   Red Wing: 715-792-5279


--
*** Exim information can be found at http://www.exim.org/ ***