[Tickets #5441] start/end date matching of vacation does not worl

bugs at bugs.horde.org bugs at bugs.horde.org
Tue Jun 5 11:36:38 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=5441
-----------------------------------------------------------------------
 Ticket             | 5441
 Created By         | adrieder at sbox.tugraz.at
 Summary            | start/end date matching of vacation does not worl
 Queue              | Ingo
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Owners             | 
-----------------------------------------------------------------------


adrieder at sbox.tugraz.at (2007-06-05 04:36) wrote:

I guess the regex used for start and end date matching in ingo sieve
vacation are not working correctly (at least not for cyrus 2.3.8 /
sendmail 8.14.1 / lmtp)

here is a header of a message which was not matched by the ingo/sieve
vacation rule following below:

Return-Path: <xyz.xyz at xyz>^M
Received: from email.tugraz.at ([unix socket])^M
         by mail.tugraz.at (Cyrus v2.3.8) with LMTPA;^M
         Tue, 05 Jun 2007 12:27:49 +0200^M
X-Sieve: CMU Sieve 2.3^M
Received: from mailrelay.tugraz.at (mailrelay.tu-graz.ac.at
[129.27.2.202])^M
        by email.tugraz.at (8.14.1/8.14.1) with ESMTP id l55ARmES029257^M
        for <abc.abc at abc.abc>; Tue, 5 Jun 2007 12:27:48 +0200 (CEST)^M
Received: from webmail.tugraz.at (webmail.tu-graz.ac.at [129.27.2.204])^M
        by mailrelay2.tugraz.at (8.14.1/8.14.1) with ESMTP id
l55ARkpe012381^M
        for <abc.abc at abc.abc>; Tue, 5 Jun 2007 12:27:46 +0200 (CEST)^M
Received: from igbgate.tu-graz.ac.at (igbgate.tu-graz.ac.at^M
        [129.27.145.220]) by webmail.tugraz.at (Horde MIME library) with
HTTP; Tue,^M
        05 Jun 2007 12:27:45 +0200^M
Message-ID: <20070605122745.da6zn6rs0gksg4gg at webmail.tugraz.at>^M
X-Priority: 3 (Normal)^M
Date: Tue, 05 Jun 2007 12:27:45 +0200^M
From: Rieder Dietmar <xyz.xyz at xyz.xyz>^M
To: abc.abc at abc.abc^M
Subject: test^M
MIME-Version: 1.0^M
Content-Type: text/plain;^M
        charset=UTF-8;^M
        DelSp="Yes";^M
        format="flowed"^M
Content-Disposition: inline^M
Content-Transfer-Encoding: 7bit^M
User-Agent: Internet Messaging Program (IMP) H3 (4.2-cvs)^M
X-Organization: Graz University of Technology^M
X-Originating-IP: 129.27.145.220^M
X-Remote-Browser: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4)^M
        Gecko/20070515 Firefox/2.0.0.4^M
X-Spam-Scanner: SpamAssassin 3.002000 ^M
X-Spam-Score-relay: -4.4^M
X-Scanned-By: MIMEDefang 2.62 on 129.27.3.25^M
X-Scanned-By: milter-sender/1.14.912 .912 (mail [129.27.3.25]); Tue, 05
Jun 2007 12:27:49 +0200^M
X-Scanned-By: MIMEDefang 2.62 on 129.27.10.19^M
X-TUG-wl: 129.27.2.202^M

(Note, that the lines end with \r\n, which is not matched by the "$" at
the end, at least not with egrep).

ingo vacation rule:

if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe",
"list-owner", "list-post", "list-archive", "list-id"], not header
:comparator "i;ascii-case
map" :is "Precedence" "list,bulk", not header :comparator
"i;ascii-casemap" :is "X-Spam-Flag" "YES" ) {
    if  header :regex "Received" "^.*(2007) (\\(.*\\) )?..:..:.. (\\(.*\\)
)?(\\+|\\-)....( \\(.*\\))?$" {
if  header :regex "Received" "^.*(Jun) (\\(.*\\) )?.... (\\(.*\\)
)?..:..:.. (\\(.*\\) )?(\\+|\\-)....( \\(.*\\))?$" {
if  header :regex "Received" "^.*(1 |2 |3 |4 |5 |6 |7 |8 |9 |10) (\\(.*\\)
)?... (\\(.*\\) )?.... (\\(.*\\) )?..:..:.. (\\(.*\\) )?(\\+|\\-)....(
\\(.*\\))?$" {
vacation :days 12 :addresses "abc.abc at abc.abc" :subject "Away" "I am away
from 01.06.2007 until 10.05.2007
";
}
}
}

}

Note: egrep "^.*(2007) (\\(.*\\) )?..:..:.. (\\(.*\\) )?(\\+|\\-).... (
\\(.*\\))?(.)?(.)$" gives no result
if I omit the trailing "$" the regex matches for egrep.



More information about the bugs mailing list