From owner-ietf-mta-filters Fri Aug  2 08:58:40 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g72FweR21445
	for ietf-mta-filters-bks; Fri, 2 Aug 2002 08:58:40 -0700 (PDT)
Received: from mail.wechsler.com ([207.237.149.124])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g72Fwcw21441
	for <ietf-mta-filters@imc.org>; Fri, 2 Aug 2002 08:58:39 -0700 (PDT)
Received: from [10.1.1.212] (g-floor.wechsler.com [10.1.1.212])
 by mail.wechsler.com (iPlanet Messaging Server 5.1 (built May  8 2001))
 with ESMTPA id <81MU08NB047WYB0034@mail.wechsler.com> for
 ietf-mta-filters@imc.org; Fri,
 02 Aug 2002 11:58:31 -0400 (Eastern Daylight Time)
Date: Fri, 02 Aug 2002 11:58:26 -0400
From: patrick conlin <patrick@wechsler.com>
Subject: sieve filter file size limitations
To: ietf-mta-filters@imc.org
Message-id: <B9702463.42EE%patrick@wechsler.com>
MIME-version: 1.0
Content-type: multipart/mixed; boundary="Boundary_(ID_H5iM1ZasjtEatbNyQb10iw)"
User-Agent: Microsoft-Entourage/10.0.0.1309
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--Boundary_(ID_H5iM1ZasjtEatbNyQb10iw)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT

Hello all,

I am wondering if there are any filter file size limitations inherent in the
sieve spec. I am using sieve to create channel-level junk mail filters for
the company's mail server, and have lately run into a problem. If I add any
more entries to the file, all mail delivery fails, and I get messages from
the postmaster about "Status: 5.0.0 (Mailbox filter evaluation error)." I'm
running the iplanet messaging server 5.1

I have attached a copy of the filter file for your perusal.

Any help would be appreciated. If this is out of scope for this list, I
apologize.

-=p=-


--Boundary_(ID_H5iM1ZasjtEatbNyQb10iw)
Content-type: text/plain; name=spamcatcher.filter; x-mac-creator=4C4D414E;
 x-mac-type=54455854
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=spamcatcher.filter

# simple sieve mail filter for channel-level use on iplanet messaging server

# created by patrick conlin 04.12.02

# last modified 07.17.02

## make sure the email hasn't already been redirected

if header :contains "Received" "ORCPT" {
keep;}

## if the From field matches domains we like, keep it

elsif address :domain :contains "From" [
	".edu",
	"activetradermag.com",
	"adstockphotos.com",
	"afdesigns.com",
	"aiga.org",
	"aigany.org",
	"bendcable.com",
	"bloomberg.com",
	"bn.com",
	"borisart.com",
	"brokeland.com",
	"cantv.net",
	"career-intelligence.com",
	"countingdown.com",
	"deltek.com",
	"desertdolphin.com",
	"dowjones.com",
	"drugstore.com",
	"ediets.com",
	"eonline.com",
	"evergreeninvestments.com",
	"execpay.com",
	"farber.net",
	"fmr.com",
	"fontbureau.com",
	"forbesdigital.com",
	"foxpath.com",
	"furniturefan.com",
	"gap.com",
	"gecapital.com",
	"gettyimages.com",
	"gtnet.com",
	"heilmanphoto.com",
	"iinews.com",
	"interlocken.org",
	"internet.com",
	"intrepidmuseum.org",
	"ipcress.org",
	"kwcorp.com",
	"lyntongardiner.com",
	"mac.com",
	"marketingsherpa.com",
	"marketwatchmail.com",
	"marylandsquare.com",
	"mindspring.com",
	"nycares.org",
	"nytimes.com",
	"petsmart.com",
	"pillsburywinthrop.com",
	"portfolioview.com",
	"reubenbutchart.com",
	"rhinoskin.com",
	"smartmarkt.com",
	"smartmoney.com",
	"sonicrecruit.com",
	"theuseful.com",
	"villagevoice.com",
	"wbinews.com",
	"writershouse.com",
	"xonetwork.com"] {
keep;}

## if the subject line contains text that we like, keep it

elsif header :contains "subject" [
	"nywici",
	"wwwac"] {
keep;}

## if the From field matches the following addresses, keep it

elsif address :all :contains "From" [
	"992life@cox.net",
	"apanagakis@ddanielspr.net",
	"babitskaya@aol.com",
	"conlinpg@hotmail.com",
	"crouchinghamster@hotmail.com",	# julie kim
	"cultureclub@pollyesthers.com",
	"daniellepaladino614@yahoo.com",
	"davidp@academic.touro.edu",
	"d_cardena@yahoo.com",
	"debiron@aol.com",
	"dredgers@excite.com",
	"ehurdman@yahoo.com",		# mara strasberg
	"eksevier@yahoo.com",		# pia cantoni
	"eol-inbox-request@newman.eonline.com",
	"eonseonsago@yahoo.com",	# julie kim
	"euforianitelife@aol.com",
	"family@bkny.com",
	"genasia@aol.com",
	"hahnas@yahoo.com",		# julie kim
	"hhpark60@hotmail.com",		# julie kim
	"homocorps@aol.com",
	"jehconsult@yahoo.com",
	"jeneaton6@hotmail.com",		# jeanne levin
	"jenn@beggars.com",
	"jk304@nyc.rr.com",
	"jmillyman@yahoo.com",		# john milly
	"jockey.com@jockeycomfort.com",
	"johnschott99@aol.com",
	"kimeay@hotmail.com",
	"kjankelowitz@hotmail.com",
	"kyle.turner@aig.com",
	"la_acerita@hotmail.com",		# rafael weil
	"le.design@verizon.net",
	"littlecr@ucinet.com",
	"lmaes@rjc.com",
	"lohara@adventcap.com",
	"mailer@list.nyrrc.org",
	"mandyh@microsoft.com",
	"manhattanmotion@msn.com",
	"marniebevington@yahoo.com",
	"martha_stewart_living@mail.marthastewart.com",
	"mspota@hotmail.com",		# mara strasberg
	"nycares@nycares.org",
	"patriciabusby@clearchannel.com",
	"patriciabusby@hotmail.com",
	"photo.direct@bellnet.ca",
	"sareview@saintanns.k12.ny.us",
	"sergioespo@aol.com",
	"susanwh13usa@aol.com",
	"tenneson@mindspring.com",
	"thedoverlittle@aol.com",
	"totemnyc@aol.com",
	"tutnyc@aol.com",
	"vvaccaro@optonline.net",
	"walkwdeo@yahoo.com",		# julie kim
	"weekender@newsletters.digitalcity.com",
	"whuang3928@aol.com",
	"winterswilson@hotmail.com",
	"wscab@aol.com"] {
keep;}

## if the From field matches suspicious domains, redirect to spamcatcher@wechsler.com

elsif address :domain :contains "From" [
	"4u.com",
	"address.com",
	"adpromailer.com",
	"adpromailer.net",
	"adprooffers.net",
	"adprosender.com",
	"adprosender.net",
	"allflip.com",
	"animeigo.com",
	"arabia.com",
	"ayna.com",
	"bigfoot.com",
	"businesscreditusa.com",
	"caramail.com",
	"consumerpackage.net",
	"cyberclicks.com",
	"dailydeals4you.com",
	"databynet.com",
	"dlbdirect.com",
	"e-klk.com",
	"emaildelivery.org",
	"emailoffersdirect.com",
	"emsiweb.com",
	"eudoramail.com",
	"export2000.ro",
	"flashmail.com",
	"flowgo.com",
	"funfabdeals.com",
	"gamblinglinks.com",
	"gossipflash.com",
	"hotmail.com",
	"infousa.com",
	"int01e.com",
	"irstupid.com",
	"itsonlybest.com",
	"julib.com",
	"kooloffers.com",
	"korea.com",
	"legacy.it",
	"link2buy.com",
	"mail.com",
	"migada.com",
	"milespree.com",
	"nexdeals.com",
	"offer888.com",
	"offer888.net",
	"offerbymail.com",
	"opmnetwork.net",
	"polbox.com",
	"quickinspirations.com",
	"real-net.net",
	"rsc02.com",
	"sky08.com",
	"smartcruit.com",
	"speedi-list.com",
	"subscriberbase.net",
	"urbanasian.com",
	"venomjeans.com",
	"vmadmin.com",
	"winning.com",
	"xmr3.com",
	"xumx.com",
	"yahoo.com",
	"ynmail.com"] {
redirect "spamcatcher@wechsler.com";}

## if the subject line contains suspicious text, redirect to spamcatcher@wechsler.com

elsif header :contains "subject" [
	"          ",
	"adult",
	"adv",
	"*anything*about*anyone*",
	"cartridges",
	"credit",
	"*credit*card*",
	"dvd",
	"*find*out*",
	"free",
	"inkjet",
	"leads",
	"loans",
	"*look*great*",
	"*lower*interest*rates*",
	"*make*money*",
	"money",
	"*more*info*inside*",
	"mortgage",
	"mtg",
	"overweight",
	"*pay*off*",
	"penile",
	"penis",
	"refinance",
	"romance",
	"removal",
	"septic",
	"sex",
	"*teen*",
	"viagra",
	"xxx",
	"*you*may*have*"] {
redirect "spamcatcher@wechsler.com";}

## if the To, Cc, or Bcc fields do not match the following domains, redirect to spamcatcher@wechsler.com

elsif not address :domain :contains ["To", "Cc", "Bcc"] [
	"acm.org",
	"americansforathirdway.com",
	"artic.edu",
	"barebones.com",
	"bitterlemons.org",
	"bloomberg.com",
	"chartoftheday.com",
	"chowhound.com",
	"cnnimail12.cnn.com",
	"dailycandy.com",
	"darediablo.com",
	"deloitte.com",
	"envirolink.org",
	"girlsclub.org",
	"imc.org",
	"internetwire.com",
	"jiscmail.ac.uk",
	"list.ediets.com",
	"list.onetravel.com",
	"lists.evolt.org",
	"lists.samba.org",
	"lists.sierraclub.org",
	"listserv.acns.nwu.edu",
	"listserv.dowjones.com",
	"listserv.performancebike.com",
	"listserv.webster.m-w.com",
	"lockbox24.com",
	"lucas-online.info",
	"majordomo.pobox.com",
	"mariascoop.com",
	"mwhse.com",
	"nywici.org",
	"packer.edu",
	"pallottateamworks.com",
	"rosswords.com",
	"rtn.columbiarecordsemail.com",
	"shamash.org",
	"ssc.com",
	"structurehouse.com",
	"treebranch.com",
	"uiuc.edu",
	"velo.qc.ca",
	"webb.org",
	"webelists.com",
	"wechsler.com",
	"wordsmith.org",
	"workbookstock.com",
	"yahoogroups.com",
	"yiwh.org",
	"ysaleagues.com"] {
redirect "spamcatcher@wechsler.com";}

--Boundary_(ID_H5iM1ZasjtEatbNyQb10iw)--

From owner-ietf-mta-filters Fri Aug  2 09:14:09 2002
Received: by above.proper.com (8.11.6/8.11.3) id g72GE9721882
	for ietf-mta-filters-bks; Fri, 2 Aug 2002 09:14:09 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g72GE8w21877
	for <ietf-mta-filters@imc.org>; Fri, 2 Aug 2002 09:14:08 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243)
 id <01KKTF54V68G0010KK@mauve.mrochek.com> for ietf-mta-filters@imc.org; Fri,
 02 Aug 2002 09:14:08 -0700 (PDT)
Date: Fri, 02 Aug 2002 09:10:23 -0700 (PDT)
From: ned.freed@mrochek.com
Subject: Re: sieve filter file size limitations
In-reply-to: "Your message dated Fri, 02 Aug 2002 11:58:26 -0400"
 <B9702463.42EE%patrick@wechsler.com>
To: patrick conlin <patrick@wechsler.com>
Cc: ietf-mta-filters@imc.org
Message-id: <01KKTFC4TPVE0010KK@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


> I am wondering if there are any filter file size limitations inherent in the
> sieve spec. I am using sieve to create channel-level junk mail filters for
> the company's mail server, and have lately run into a problem. If I add any
> more entries to the file, all mail delivery fails, and I get messages from
> the postmaster about "Status: 5.0.0 (Mailbox filter evaluation error)." I'm
> running the iplanet messaging server 5.1

You really shouldn't be asking questions about a particular company's
implementation of sieve here. This list is for discussion of the sieve
language. I would suggest that you take this conversation to the
info-ims@arnold.com list, which is a general discussion list for iMS.

Be that as it may, the sieve specification is quite clear about this: While it
does not impose any limits of its own, the specification says that
Implementations are free to impose limits on the size of certain constructs. So
this is not a violation of the sieve specification. 

				Ned

From owner-ietf-mta-filters Sun Aug 11 06:58:06 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g7BDw6F29590
	for ietf-mta-filters-bks; Sun, 11 Aug 2002 06:58:06 -0700 (PDT)
Received: from mail.epost.de (web.epost.de [193.28.100.164] (may be forged))
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g7BDw4w29581
	for <ietf-mta-filters@imc.org>; Sun, 11 Aug 2002 06:58:04 -0700 (PDT)
Received: from dirichlet.mathematik.uni-bielefeld.de (217.82.93.9) by mail.epost.de (5.5.056) (authenticated as Marc.Mutz@epost.de)
        id 3D1479F00038C182 for ietf-mta-filters@imc.org; Sun, 11 Aug 2002 15:58:03 +0200
From: Marc Mutz <mutz@kde.org>
Organization: KDE
To: ietf-mta-filters@imc.org
Subject: Error in rfc3028? Only one elsif allowed per if?
Date: Sun, 11 Aug 2002 15:51:12 +0200
User-Agent: KMail/1.4.6
X-PGP-Key: 0xBDBFE838
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="us-ascii"
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200208111551.31550@sendmail.mutz.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g7BDw5w29585
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I just stumbled across this one:

rfc3028:
3.1.     Control Structure If

   There are three pieces to if: "if", "elsif", and "else".  Each is
   actually a separate command in terms of the grammar.  However, an
   elsif MUST only follow an if, and an else MUST follow only either an
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   if or an elsif.  An error occurs if these conditions are not met.

Error or intentional?

Marc

- -- 
If free-software authors lose the right to disclaim all warranties and
find themselves getting sued over the performance of the programs
they've written, they'll stop contributing free software to the world.
 -- Bruce Perens: Open Sources: Voices from the Open Source Revolution
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Vmvh3oWD+L2/6DgRAkZBAJ9El5Ruzjb5ZdANe2u4GI4BVjYHhwCgzW5A
XuKU4ZYZ/jgronWpu/ScmjA=
=mkqt
-----END PGP SIGNATURE-----


From owner-ietf-mta-filters Sun Aug 11 08:06:05 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g7BF65U04902
	for ietf-mta-filters-bks; Sun, 11 Aug 2002 08:06:05 -0700 (PDT)
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g7BF63w04897
	for <ietf-mta-filters@imc.org>; Sun, 11 Aug 2002 08:06:04 -0700 (PDT)
Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178])
	(authenticated bits=0)
	by yxa.extundo.com (8.12.5/8.12.5) with ESMTP id g7BF5qi2024947;
	Sun, 11 Aug 2002 17:05:52 +0200
To: Marc Mutz <mutz@kde.org>
Cc: ietf-mta-filters@imc.org
Subject: Re: Error in rfc3028? Only one elsif allowed per if?
References: <200208111551.31550@sendmail.mutz.com>
X-Hashcash: 020811:mutz@kde.org:c86053ce3c0d2494
X-Hashcash: 020811:ietf-mta-filters@imc.org:a437bff81694623a
From: Simon Josefsson <jas@extundo.com>
Date: Sun, 11 Aug 2002 17:05:56 +0200
In-Reply-To: <200208111551.31550@sendmail.mutz.com> (Marc Mutz's message of
 "Sun, 11 Aug 2002 15:51:12 +0200")
Message-ID: <ilu3ctle8q3.fsf@latte.josefsson.org>
Lines: 21
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50
 (i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, hits=-1.7 required=5.0
	tests=IN_REP_TO,SUBJ_ENDS_IN_Q_MARK,SUBJ_HAS_Q_MARK,
	      DOUBLE_CAPSWORD
	version=2.31
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


Marc Mutz <mutz@kde.org> writes:

> Hi!
>
> I just stumbled across this one:
>
> rfc3028:
> 3.1.     Control Structure If
>
>    There are three pieces to if: "if", "elsif", and "else".  Each is
>    actually a separate command in terms of the grammar.  However, an
>    elsif MUST only follow an if, and an else MUST follow only either an
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    if or an elsif.  An error occurs if these conditions are not met.
>
> Error or intentional?

It says "an elsif", not "one elsif" -- having several elsif's per if
seems fine, as they "follow" the if in some sense.  "an elsif MUST
only directly follow an if or elsif" is more clear though, the word
"follow" is not strictly defined in the language, I think.


From owner-ietf-mta-filters Sun Aug 11 16:11:59 2002
Received: by above.proper.com (8.11.6/8.11.3) id g7BNBx026924
	for ietf-mta-filters-bks; Sun, 11 Aug 2002 16:11:59 -0700 (PDT)
Received: from mail.epost.de (web.epost.de [193.28.100.164] (may be forged))
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g7BNBvw26916
	for <ietf-mta-filters@imc.org>; Sun, 11 Aug 2002 16:11:57 -0700 (PDT)
Received: from dirichlet.mathematik.uni-bielefeld.de (217.82.84.23) by mail.epost.de (5.5.056) (authenticated as Marc.Mutz@epost.de)
        id 3D1479F000392EA6; Mon, 12 Aug 2002 01:11:57 +0200
From: Marc Mutz <mutz@kde.org>
Organization: KDE
To: Simon Josefsson <jas@extundo.com>
Subject: Re: Error in rfc3028? Only one elsif allowed per if?
Date: Mon, 12 Aug 2002 01:04:54 +0200
User-Agent: KMail/1.4.6
Cc: ietf-mta-filters@imc.org
References: <200208111551.31550@sendmail.mutz.com> <ilu3ctle8q3.fsf@latte.josefsson.org>
In-Reply-To: <ilu3ctle8q3.fsf@latte.josefsson.org>
X-PGP-Key: 0xBDBFE838
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200208120104.54882@sendmail.mutz.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g7BNBvw26918
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 11 August 2002 17:05, Simon Josefsson wrote:
<snip>
> >    There are three pieces to if: "if", "elsif", and "else".  Each
> > is actually a separate command in terms of the grammar.  However,
> > an elsif MUST only follow an if, and an else MUST follow only
> > either an ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >    if or an elsif.  An error occurs if these conditions are not
> > met.
> >
> > Error or intentional?
>
> It says "an elsif", not "one elsif" -- having several elsif's per if
> seems fine, as they "follow" the if in some sense.

If I follow that reasoning, then there are also multiple else's allowed 
after a single if ;-) - the formulation is the same for both elsif and 
else.

>  "an elsif MUST
> only directly follow an if or elsif" is more clear though, the word
> "follow" is not strictly defined in the language, I think.

- -> rfc-editor@rfc-editor.org?subject=errata%20rfc3028
?

Marc

BTW: Do you intend to make the capabilities available in the metadata 
map for the managesieve slave you wrote for KDE? Or shall I do that?

- -- 
Mutig warf sich die kleine Überwachungskamera zwischen Täter Opfer!
                                        --Rena Tangens / FoeBuD e.V.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Vu2W3oWD+L2/6DgRAgfmAJ9PFD9TU3/GQB2GgoRZSM00ZRK6rwCgxsuG
UGwTj/8Ejye+XHx3KVeqbEo=
=uLt5
-----END PGP SIGNATURE-----


From owner-ietf-mta-filters Sun Aug 11 17:41:16 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g7C0fGO29595
	for ietf-mta-filters-bks; Sun, 11 Aug 2002 17:41:16 -0700 (PDT)
Received: from candle.brasslantern.com (snjpca1-ar2-4-64-232-231.snjpca1.dsl-verizon.net [4.64.232.231])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g7C0fEw29591
	for <ietf-mta-filters@imc.org>; Sun, 11 Aug 2002 17:41:15 -0700 (PDT)
Received: (from schaefer@localhost)
	by candle.brasslantern.com (8.11.6/8.11.6) id g7C0e8i27923;
	Sun, 11 Aug 2002 17:40:08 -0700
From: "Bart Schaefer" <schaefer@brasslantern.com>
Message-Id: <1020812004008.ZM27922@candle.brasslantern.com>
Date: Mon, 12 Aug 2002 00:40:08 +0000
In-Reply-To: <200208120104.54882@sendmail.mutz.com>
Comments: In reply to Marc Mutz <mutz@kde.org>
        "Re: Error in rfc3028? Only one elsif allowed per if?" (Aug 12,  1:04am)
References: <200208111551.31550@sendmail.mutz.com> 
	<ilu3ctle8q3.fsf@latte.josefsson.org> 
	<200208120104.54882@sendmail.mutz.com>
X-Mailer: Z-Mail (5.0.0 30July97)
To: Marc Mutz <mutz@kde.org>
Subject: Re: Error in rfc3028? Only one elsif allowed per if?
Cc: ietf-mta-filters@imc.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


On Aug 12,  1:04am, Marc Mutz wrote:
} Subject: Re: Error in rfc3028? Only one elsif allowed per if?
}
} On Sunday 11 August 2002 17:05, Simon Josefsson wrote:
} <snip>
} > > an elsif MUST only follow an if, and an else MUST follow only
} > > either an ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
} > >    if or an elsif.
} >
} > It says "an elsif", not "one elsif" -- having several elsif's per if
} > seems fine, as they "follow" the if in some sense.
} 
} If I follow that reasoning, then there are also multiple else's allowed 
} after a single if ;-) - the formulation is the same for both elsif and 
} else.

No:

"only follow" --> must not appear before something

"follow only" --> must not appear after any other thing

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   

From owner-ietf-mta-filters Mon Aug 12 14:27:03 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g7CLR3700908
	for ietf-mta-filters-bks; Mon, 12 Aug 2002 14:27:03 -0700 (PDT)
Received: from fp.mirapoint.com (fp.mirapoint.com [63.107.133.21])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g7CLR1w00903
	for <ietf-mta-filters@imc.org>; Mon, 12 Aug 2002 14:27:02 -0700 (PDT)
Received: from alpo.mirapoint.com (alpo.mirapoint.com [192.168.0.19])
	by fp.mirapoint.com (Mirapoint Messaging Server MOS 3.2.0-GA FastPath)
	with ESMTP id AAH17590;
	Mon, 12 Aug 2002 14:26:58 -0700 (PDT)
Received: from funhouse.mirapoint.com (funhouse.mirapoint.com [192.168.0.92])
	by alpo.mirapoint.com (Mirapoint Messaging Server MOS 3.2.0-GA)
	with ESMTP id AFX04140;
	Mon, 12 Aug 2002 14:26:56 -0700 (PDT)
Subject: Re: Error in rfc3028? Only one elsif allowed per if?
From: Tim Showalter <tjs@mirapoint.com>
To: Marc Mutz <mutz@kde.org>
Cc: ietf-mta-filters@imc.org
In-Reply-To: <200208111551.31550@sendmail.mutz.com>
References: <200208111551.31550@sendmail.mutz.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.7 
Date: 12 Aug 2002 14:21:52 -0700
Message-Id: <1029187313.71221.15.camel@funhouse.mirapoint.com>
Mime-Version: 1.0
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>


I think the intent is clear (i.e., same as perl or Bourne shell), but
the text is murky at best.  I'm not sure I want to defend the semantics
so that we get the right meaning--it's not worth it and I might lose.
:-)

I'll try to fix it in the next iteration.  Unfortunately since
if/elsif/else has been abstracted out of the grammar, the usual ways of
expressing them are not available.

If the intent isn't clear, you can have exactly one if clause, zero or
more elsif clauses, and zero or one else clause, in that order.

That is, If MAY be followed by an elsif or else clause.  Elsif MAY be
followed by an elsif or else clause.  Elsif MUST follow an elsif or if.
Else MUST follow an elsif or if.

Tim



From owner-ietf-mta-filters Mon Aug 19 19:32:20 2002
Received: from localhost (localhost [[UNIX: localhost]])
	by above.proper.com (8.11.6/8.11.3) id g7K2WKS10910
	for ietf-mta-filters-bks; Mon, 19 Aug 2002 19:32:20 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55])
	by above.proper.com (8.11.6/8.11.3) with ESMTP id g7K2WJ210905
	for <ietf-mta-filters@imc.org>; Mon, 19 Aug 2002 19:32:19 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243)
 id <01KLHAMB2OHS0001B1@mauve.mrochek.com> for ietf-mta-filters@imc.org; Mon,
 19 Aug 2002 19:32:07 -0700 (PDT)
Date: Mon, 19 Aug 2002 19:19:33 -0700 (PDT)
From: ned.freed@mrochek.com
Subject: Re: Progressing various sieve drafts
In-reply-to: "Your message dated Wed, 17 Jul 2002 09:44:28 -0400"
 <3D3574BC.4F65BEDF@oceana.com>
To: Ken Murchison <ken@oceana.com>
Cc: ietf-mta-filters@imc.org
Message-id: <01KLHRV765M80001B1@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
References: <01KK4Z93DVC6001ZTY@mauve.mrochek.com>
 <003801c22d20$a1e57c90$c020c350@nigelhome> <3D3574BC.4F65BEDF@oceana.com>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>





> Nigel Swinson wrote:
> >
> > > Folks, we now have a bunch of sieve drafts on the table. Is it time to
> > > start some of them through the standards process? If so, which ones?
> >
> > I'd like to see the regex draft through to a standard.  Very useful and
> > don't think it's changed very much recently.  Ken?
> >
> > http://search.ietf.org/internet-drafts/draft-murchison-sieve-regex-06.txt

> Most of the changes have been editorial.  I think in order for it do get
> through the standards process we will probably need to do something
> about internationalization/localization (unless Ned thinks otherwise):

> 0.3.   Open Issues

>     The major open issue with this draft is what to do, if anything,
>     about localization/internationalization.  Are [POSIX.2] collating
>     sequences and character equivalents sufficient?

POSIX regexp is awkward in that it is locale based, and we really don't want
that. OTOH, it is clearly the definition of choice for regexps. I think the way
this is handled in the TCL regexp package is the right way to go: In that case
regexp always operates in the "Unicode" locale. If we want to do fancier things
with normalization and such we should do it via stringprep and tie it in with a
comparator.

Does POSIX.2 actually define additional collating sequences or any
character equivalents? If not, I think simply stating that this has to
operate in the "Unicode" locale is the way to go.

				Ned


Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g7K2WKS10910 for ietf-mta-filters-bks; Mon, 19 Aug 2002 19:32:20 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g7K2WJ210905 for <ietf-mta-filters@imc.org>; Mon, 19 Aug 2002 19:32:19 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01KLHAMB2OHS0001B1@mauve.mrochek.com> for ietf-mta-filters@imc.org; Mon, 19 Aug 2002 19:32:07 -0700 (PDT)
Date: Mon, 19 Aug 2002 19:19:33 -0700 (PDT)
From: ned.freed@mrochek.com
Subject: Re: Progressing various sieve drafts
In-reply-to: "Your message dated Wed, 17 Jul 2002 09:44:28 -0400" <3D3574BC.4F65BEDF@oceana.com>
To: Ken Murchison <ken@oceana.com>
Cc: ietf-mta-filters@imc.org
Message-id: <01KLHRV765M80001B1@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
References: <01KK4Z93DVC6001ZTY@mauve.mrochek.com> <003801c22d20$a1e57c90$c020c350@nigelhome> <3D3574BC.4F65BEDF@oceana.com>
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> Nigel Swinson wrote:
> >
> > > Folks, we now have a bunch of sieve drafts on the table. Is it time to
> > > start some of them through the standards process? If so, which ones?
> >
> > I'd like to see the regex draft through to a standard.  Very useful and
> > don't think it's changed very much recently.  Ken?
> >
> > http://search.ietf.org/internet-drafts/draft-murchison-sieve-regex-06.txt

> Most of the changes have been editorial.  I think in order for it do get
> through the standards process we will probably need to do something
> about internationalization/localization (unless Ned thinks otherwise):

> 0.3.   Open Issues

>     The major open issue with this draft is what to do, if anything,
>     about localization/internationalization.  Are [POSIX.2] collating
>     sequences and character equivalents sufficient?

POSIX regexp is awkward in that it is locale based, and we really don't want
that. OTOH, it is clearly the definition of choice for regexps. I think the way
this is handled in the TCL regexp package is the right way to go: In that case
regexp always operates in the "Unicode" locale. If we want to do fancier things
with normalization and such we should do it via stringprep and tie it in with a
comparator.

Does POSIX.2 actually define additional collating sequences or any
character equivalents? If not, I think simply stating that this has to
operate in the "Unicode" locale is the way to go.

				Ned


Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g7CLR3700908 for ietf-mta-filters-bks; Mon, 12 Aug 2002 14:27:03 -0700 (PDT)
Received: from fp.mirapoint.com (fp.mirapoint.com [63.107.133.21]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g7CLR1w00903 for <ietf-mta-filters@imc.org>; Mon, 12 Aug 2002 14:27:02 -0700 (PDT)
Received: from alpo.mirapoint.com (alpo.mirapoint.com [192.168.0.19]) by fp.mirapoint.com (Mirapoint Messaging Server MOS 3.2.0-GA FastPath) with ESMTP id AAH17590; Mon, 12 Aug 2002 14:26:58 -0700 (PDT)
Received: from funhouse.mirapoint.com (funhouse.mirapoint.com [192.168.0.92]) by alpo.mirapoint.com (Mirapoint Messaging Server MOS 3.2.0-GA) with ESMTP id AFX04140; Mon, 12 Aug 2002 14:26:56 -0700 (PDT)
Subject: Re: Error in rfc3028? Only one elsif allowed per if?
From: Tim Showalter <tjs@mirapoint.com>
To: Marc Mutz <mutz@kde.org>
Cc: ietf-mta-filters@imc.org
In-Reply-To: <200208111551.31550@sendmail.mutz.com>
References: <200208111551.31550@sendmail.mutz.com>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.7 
Date: 12 Aug 2002 14:21:52 -0700
Message-Id: <1029187313.71221.15.camel@funhouse.mirapoint.com>
Mime-Version: 1.0
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

I think the intent is clear (i.e., same as perl or Bourne shell), but
the text is murky at best.  I'm not sure I want to defend the semantics
so that we get the right meaning--it's not worth it and I might lose.
:-)

I'll try to fix it in the next iteration.  Unfortunately since
if/elsif/else has been abstracted out of the grammar, the usual ways of
expressing them are not available.

If the intent isn't clear, you can have exactly one if clause, zero or
more elsif clauses, and zero or one else clause, in that order.

That is, If MAY be followed by an elsif or else clause.  Elsif MAY be
followed by an elsif or else clause.  Elsif MUST follow an elsif or if.
Else MUST follow an elsif or if.

Tim




Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g7C0fGO29595 for ietf-mta-filters-bks; Sun, 11 Aug 2002 17:41:16 -0700 (PDT)
Received: from candle.brasslantern.com (snjpca1-ar2-4-64-232-231.snjpca1.dsl-verizon.net [4.64.232.231]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g7C0fEw29591 for <ietf-mta-filters@imc.org>; Sun, 11 Aug 2002 17:41:15 -0700 (PDT)
Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id g7C0e8i27923; Sun, 11 Aug 2002 17:40:08 -0700
From: "Bart Schaefer" <schaefer@brasslantern.com>
Message-Id: <1020812004008.ZM27922@candle.brasslantern.com>
Date: Mon, 12 Aug 2002 00:40:08 +0000
In-Reply-To: <200208120104.54882@sendmail.mutz.com>
Comments: In reply to Marc Mutz <mutz@kde.org> "Re: Error in rfc3028? Only one elsif allowed per if?" (Aug 12,  1:04am)
References: <200208111551.31550@sendmail.mutz.com>  <ilu3ctle8q3.fsf@latte.josefsson.org>  <200208120104.54882@sendmail.mutz.com>
X-Mailer: Z-Mail (5.0.0 30July97)
To: Marc Mutz <mutz@kde.org>
Subject: Re: Error in rfc3028? Only one elsif allowed per if?
Cc: ietf-mta-filters@imc.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

On Aug 12,  1:04am, Marc Mutz wrote:
} Subject: Re: Error in rfc3028? Only one elsif allowed per if?
}
} On Sunday 11 August 2002 17:05, Simon Josefsson wrote:
} <snip>
} > > an elsif MUST only follow an if, and an else MUST follow only
} > > either an ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
} > >    if or an elsif.
} >
} > It says "an elsif", not "one elsif" -- having several elsif's per if
} > seems fine, as they "follow" the if in some sense.
} 
} If I follow that reasoning, then there are also multiple else's allowed 
} after a single if ;-) - the formulation is the same for both elsif and 
} else.

No:

"only follow" --> must not appear before something

"follow only" --> must not appear after any other thing

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


Received: by above.proper.com (8.11.6/8.11.3) id g7BNBx026924 for ietf-mta-filters-bks; Sun, 11 Aug 2002 16:11:59 -0700 (PDT)
Received: from mail.epost.de (web.epost.de [193.28.100.164] (may be forged)) by above.proper.com (8.11.6/8.11.3) with ESMTP id g7BNBvw26916 for <ietf-mta-filters@imc.org>; Sun, 11 Aug 2002 16:11:57 -0700 (PDT)
Received: from dirichlet.mathematik.uni-bielefeld.de (217.82.84.23) by mail.epost.de (5.5.056) (authenticated as Marc.Mutz@epost.de) id 3D1479F000392EA6; Mon, 12 Aug 2002 01:11:57 +0200
From: Marc Mutz <mutz@kde.org>
Organization: KDE
To: Simon Josefsson <jas@extundo.com>
Subject: Re: Error in rfc3028? Only one elsif allowed per if?
Date: Mon, 12 Aug 2002 01:04:54 +0200
User-Agent: KMail/1.4.6
Cc: ietf-mta-filters@imc.org
References: <200208111551.31550@sendmail.mutz.com> <ilu3ctle8q3.fsf@latte.josefsson.org>
In-Reply-To: <ilu3ctle8q3.fsf@latte.josefsson.org>
X-PGP-Key: 0xBDBFE838
MIME-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200208120104.54882@sendmail.mutz.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g7BNBvw26918
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 11 August 2002 17:05, Simon Josefsson wrote:
<snip>
> >    There are three pieces to if: "if", "elsif", and "else".  Each
> > is actually a separate command in terms of the grammar.  However,
> > an elsif MUST only follow an if, and an else MUST follow only
> > either an ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >    if or an elsif.  An error occurs if these conditions are not
> > met.
> >
> > Error or intentional?
>
> It says "an elsif", not "one elsif" -- having several elsif's per if
> seems fine, as they "follow" the if in some sense.

If I follow that reasoning, then there are also multiple else's allowed 
after a single if ;-) - the formulation is the same for both elsif and 
else.

>  "an elsif MUST
> only directly follow an if or elsif" is more clear though, the word
> "follow" is not strictly defined in the language, I think.

- -> rfc-editor@rfc-editor.org?subject=errata%20rfc3028
?

Marc

BTW: Do you intend to make the capabilities available in the metadata 
map for the managesieve slave you wrote for KDE? Or shall I do that?

- -- 
Mutig warf sich die kleine Überwachungskamera zwischen Täter Opfer!
                                        --Rena Tangens / FoeBuD e.V.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Vu2W3oWD+L2/6DgRAgfmAJ9PFD9TU3/GQB2GgoRZSM00ZRK6rwCgxsuG
UGwTj/8Ejye+XHx3KVeqbEo=
=uLt5
-----END PGP SIGNATURE-----



Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g7BF65U04902 for ietf-mta-filters-bks; Sun, 11 Aug 2002 08:06:05 -0700 (PDT)
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g7BF63w04897 for <ietf-mta-filters@imc.org>; Sun, 11 Aug 2002 08:06:04 -0700 (PDT)
Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.5/8.12.5) with ESMTP id g7BF5qi2024947; Sun, 11 Aug 2002 17:05:52 +0200
To: Marc Mutz <mutz@kde.org>
Cc: ietf-mta-filters@imc.org
Subject: Re: Error in rfc3028? Only one elsif allowed per if?
References: <200208111551.31550@sendmail.mutz.com>
X-Hashcash: 020811:mutz@kde.org:c86053ce3c0d2494
X-Hashcash: 020811:ietf-mta-filters@imc.org:a437bff81694623a
From: Simon Josefsson <jas@extundo.com>
Date: Sun, 11 Aug 2002 17:05:56 +0200
In-Reply-To: <200208111551.31550@sendmail.mutz.com> (Marc Mutz's message of "Sun, 11 Aug 2002 15:51:12 +0200")
Message-ID: <ilu3ctle8q3.fsf@latte.josefsson.org>
Lines: 21
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, hits=-1.7 required=5.0 tests=IN_REP_TO,SUBJ_ENDS_IN_Q_MARK,SUBJ_HAS_Q_MARK, DOUBLE_CAPSWORD version=2.31
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

Marc Mutz <mutz@kde.org> writes:

> Hi!
>
> I just stumbled across this one:
>
> rfc3028:
> 3.1.     Control Structure If
>
>    There are three pieces to if: "if", "elsif", and "else".  Each is
>    actually a separate command in terms of the grammar.  However, an
>    elsif MUST only follow an if, and an else MUST follow only either an
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    if or an elsif.  An error occurs if these conditions are not met.
>
> Error or intentional?

It says "an elsif", not "one elsif" -- having several elsif's per if
seems fine, as they "follow" the if in some sense.  "an elsif MUST
only directly follow an if or elsif" is more clear though, the word
"follow" is not strictly defined in the language, I think.



Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g7BDw6F29590 for ietf-mta-filters-bks; Sun, 11 Aug 2002 06:58:06 -0700 (PDT)
Received: from mail.epost.de (web.epost.de [193.28.100.164] (may be forged)) by above.proper.com (8.11.6/8.11.3) with ESMTP id g7BDw4w29581 for <ietf-mta-filters@imc.org>; Sun, 11 Aug 2002 06:58:04 -0700 (PDT)
Received: from dirichlet.mathematik.uni-bielefeld.de (217.82.93.9) by mail.epost.de (5.5.056) (authenticated as Marc.Mutz@epost.de) id 3D1479F00038C182 for ietf-mta-filters@imc.org; Sun, 11 Aug 2002 15:58:03 +0200
From: Marc Mutz <mutz@kde.org>
Organization: KDE
To: ietf-mta-filters@imc.org
Subject: Error in rfc3028? Only one elsif allowed per if?
Date: Sun, 11 Aug 2002 15:51:12 +0200
User-Agent: KMail/1.4.6
X-PGP-Key: 0xBDBFE838
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Description: clearsigned data
Content-Disposition: inline
Message-Id: <200208111551.31550@sendmail.mutz.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by above.proper.com id g7BDw5w29585
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I just stumbled across this one:

rfc3028:
3.1.     Control Structure If

   There are three pieces to if: "if", "elsif", and "else".  Each is
   actually a separate command in terms of the grammar.  However, an
   elsif MUST only follow an if, and an else MUST follow only either an
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   if or an elsif.  An error occurs if these conditions are not met.

Error or intentional?

Marc

- -- 
If free-software authors lose the right to disclaim all warranties and
find themselves getting sued over the performance of the programs
they've written, they'll stop contributing free software to the world.
 -- Bruce Perens: Open Sources: Voices from the Open Source Revolution
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9Vmvh3oWD+L2/6DgRAkZBAJ9El5Ruzjb5ZdANe2u4GI4BVjYHhwCgzW5A
XuKU4ZYZ/jgronWpu/ScmjA=
=mkqt
-----END PGP SIGNATURE-----



Received: by above.proper.com (8.11.6/8.11.3) id g72GE9721882 for ietf-mta-filters-bks; Fri, 2 Aug 2002 09:14:09 -0700 (PDT)
Received: from mauve.mrochek.com (mauve.mrochek.com [209.55.107.55]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g72GE8w21877 for <ietf-mta-filters@imc.org>; Fri, 2 Aug 2002 09:14:08 -0700 (PDT)
Received: from mauve.mrochek.com by mauve.mrochek.com (PMDF V6.1-1 #35243) id <01KKTF54V68G0010KK@mauve.mrochek.com> for ietf-mta-filters@imc.org; Fri, 02 Aug 2002 09:14:08 -0700 (PDT)
Date: Fri, 02 Aug 2002 09:10:23 -0700 (PDT)
From: ned.freed@mrochek.com
Subject: Re: sieve filter file size limitations
In-reply-to: "Your message dated Fri, 02 Aug 2002 11:58:26 -0400" <B9702463.42EE%patrick@wechsler.com>
To: patrick conlin <patrick@wechsler.com>
Cc: ietf-mta-filters@imc.org
Message-id: <01KKTFC4TPVE0010KK@mauve.mrochek.com>
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> I am wondering if there are any filter file size limitations inherent in the
> sieve spec. I am using sieve to create channel-level junk mail filters for
> the company's mail server, and have lately run into a problem. If I add any
> more entries to the file, all mail delivery fails, and I get messages from
> the postmaster about "Status: 5.0.0 (Mailbox filter evaluation error)." I'm
> running the iplanet messaging server 5.1

You really shouldn't be asking questions about a particular company's
implementation of sieve here. This list is for discussion of the sieve
language. I would suggest that you take this conversation to the
info-ims@arnold.com list, which is a general discussion list for iMS.

Be that as it may, the sieve specification is quite clear about this: While it
does not impose any limits of its own, the specification says that
Implementations are free to impose limits on the size of certain constructs. So
this is not a violation of the sieve specification. 

				Ned


Received: from localhost (localhost [[UNIX: localhost]]) by above.proper.com (8.11.6/8.11.3) id g72FweR21445 for ietf-mta-filters-bks; Fri, 2 Aug 2002 08:58:40 -0700 (PDT)
Received: from mail.wechsler.com ([207.237.149.124]) by above.proper.com (8.11.6/8.11.3) with ESMTP id g72Fwcw21441 for <ietf-mta-filters@imc.org>; Fri, 2 Aug 2002 08:58:39 -0700 (PDT)
Received: from [10.1.1.212] (g-floor.wechsler.com [10.1.1.212]) by mail.wechsler.com (iPlanet Messaging Server 5.1 (built May  8 2001)) with ESMTPA id <81MU08NB047WYB0034@mail.wechsler.com> for ietf-mta-filters@imc.org; Fri, 02 Aug 2002 11:58:31 -0400 (Eastern Daylight Time)
Date: Fri, 02 Aug 2002 11:58:26 -0400
From: patrick conlin <patrick@wechsler.com>
Subject: sieve filter file size limitations
To: ietf-mta-filters@imc.org
Message-id: <B9702463.42EE%patrick@wechsler.com>
MIME-version: 1.0
Content-type: multipart/mixed; boundary="Boundary_(ID_H5iM1ZasjtEatbNyQb10iw)"
User-Agent: Microsoft-Entourage/10.0.0.1309
Sender: owner-ietf-mta-filters@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-mta-filters/mail-archive/>
List-ID: <ietf-mta-filters.imc.org>
List-Unsubscribe: <mailto:ietf-mta-filters-request@imc.org?body=unsubscribe>

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--Boundary_(ID_H5iM1ZasjtEatbNyQb10iw)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT

Hello all,

I am wondering if there are any filter file size limitations inherent in the
sieve spec. I am using sieve to create channel-level junk mail filters for
the company's mail server, and have lately run into a problem. If I add any
more entries to the file, all mail delivery fails, and I get messages from
the postmaster about "Status: 5.0.0 (Mailbox filter evaluation error)." I'm
running the iplanet messaging server 5.1

I have attached a copy of the filter file for your perusal.

Any help would be appreciated. If this is out of scope for this list, I
apologize.

-=p=-


--Boundary_(ID_H5iM1ZasjtEatbNyQb10iw)
Content-type: text/plain; name=spamcatcher.filter; x-mac-creator=4C4D414E;
 x-mac-type=54455854
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=spamcatcher.filter

# simple sieve mail filter for channel-level use on iplanet messaging server

# created by patrick conlin 04.12.02

# last modified 07.17.02

## make sure the email hasn't already been redirected

if header :contains "Received" "ORCPT" {
keep;}

## if the From field matches domains we like, keep it

elsif address :domain :contains "From" [
	".edu",
	"activetradermag.com",
	"adstockphotos.com",
	"afdesigns.com",
	"aiga.org",
	"aigany.org",
	"bendcable.com",
	"bloomberg.com",
	"bn.com",
	"borisart.com",
	"brokeland.com",
	"cantv.net",
	"career-intelligence.com",
	"countingdown.com",
	"deltek.com",
	"desertdolphin.com",
	"dowjones.com",
	"drugstore.com",
	"ediets.com",
	"eonline.com",
	"evergreeninvestments.com",
	"execpay.com",
	"farber.net",
	"fmr.com",
	"fontbureau.com",
	"forbesdigital.com",
	"foxpath.com",
	"furniturefan.com",
	"gap.com",
	"gecapital.com",
	"gettyimages.com",
	"gtnet.com",
	"heilmanphoto.com",
	"iinews.com",
	"interlocken.org",
	"internet.com",
	"intrepidmuseum.org",
	"ipcress.org",
	"kwcorp.com",
	"lyntongardiner.com",
	"mac.com",
	"marketingsherpa.com",
	"marketwatchmail.com",
	"marylandsquare.com",
	"mindspring.com",
	"nycares.org",
	"nytimes.com",
	"petsmart.com",
	"pillsburywinthrop.com",
	"portfolioview.com",
	"reubenbutchart.com",
	"rhinoskin.com",
	"smartmarkt.com",
	"smartmoney.com",
	"sonicrecruit.com",
	"theuseful.com",
	"villagevoice.com",
	"wbinews.com",
	"writershouse.com",
	"xonetwork.com"] {
keep;}

## if the subject line contains text that we like, keep it

elsif header :contains "subject" [
	"nywici",
	"wwwac"] {
keep;}

## if the From field matches the following addresses, keep it

elsif address :all :contains "From" [
	"992life@cox.net",
	"apanagakis@ddanielspr.net",
	"babitskaya@aol.com",
	"conlinpg@hotmail.com",
	"crouchinghamster@hotmail.com",	# julie kim
	"cultureclub@pollyesthers.com",
	"daniellepaladino614@yahoo.com",
	"davidp@academic.touro.edu",
	"d_cardena@yahoo.com",
	"debiron@aol.com",
	"dredgers@excite.com",
	"ehurdman@yahoo.com",		# mara strasberg
	"eksevier@yahoo.com",		# pia cantoni
	"eol-inbox-request@newman.eonline.com",
	"eonseonsago@yahoo.com",	# julie kim
	"euforianitelife@aol.com",
	"family@bkny.com",
	"genasia@aol.com",
	"hahnas@yahoo.com",		# julie kim
	"hhpark60@hotmail.com",		# julie kim
	"homocorps@aol.com",
	"jehconsult@yahoo.com",
	"jeneaton6@hotmail.com",		# jeanne levin
	"jenn@beggars.com",
	"jk304@nyc.rr.com",
	"jmillyman@yahoo.com",		# john milly
	"jockey.com@jockeycomfort.com",
	"johnschott99@aol.com",
	"kimeay@hotmail.com",
	"kjankelowitz@hotmail.com",
	"kyle.turner@aig.com",
	"la_acerita@hotmail.com",		# rafael weil
	"le.design@verizon.net",
	"littlecr@ucinet.com",
	"lmaes@rjc.com",
	"lohara@adventcap.com",
	"mailer@list.nyrrc.org",
	"mandyh@microsoft.com",
	"manhattanmotion@msn.com",
	"marniebevington@yahoo.com",
	"martha_stewart_living@mail.marthastewart.com",
	"mspota@hotmail.com",		# mara strasberg
	"nycares@nycares.org",
	"patriciabusby@clearchannel.com",
	"patriciabusby@hotmail.com",
	"photo.direct@bellnet.ca",
	"sareview@saintanns.k12.ny.us",
	"sergioespo@aol.com",
	"susanwh13usa@aol.com",
	"tenneson@mindspring.com",
	"thedoverlittle@aol.com",
	"totemnyc@aol.com",
	"tutnyc@aol.com",
	"vvaccaro@optonline.net",
	"walkwdeo@yahoo.com",		# julie kim
	"weekender@newsletters.digitalcity.com",
	"whuang3928@aol.com",
	"winterswilson@hotmail.com",
	"wscab@aol.com"] {
keep;}

## if the From field matches suspicious domains, redirect to spamcatcher@wechsler.com

elsif address :domain :contains "From" [
	"4u.com",
	"address.com",
	"adpromailer.com",
	"adpromailer.net",
	"adprooffers.net",
	"adprosender.com",
	"adprosender.net",
	"allflip.com",
	"animeigo.com",
	"arabia.com",
	"ayna.com",
	"bigfoot.com",
	"businesscreditusa.com",
	"caramail.com",
	"consumerpackage.net",
	"cyberclicks.com",
	"dailydeals4you.com",
	"databynet.com",
	"dlbdirect.com",
	"e-klk.com",
	"emaildelivery.org",
	"emailoffersdirect.com",
	"emsiweb.com",
	"eudoramail.com",
	"export2000.ro",
	"flashmail.com",
	"flowgo.com",
	"funfabdeals.com",
	"gamblinglinks.com",
	"gossipflash.com",
	"hotmail.com",
	"infousa.com",
	"int01e.com",
	"irstupid.com",
	"itsonlybest.com",
	"julib.com",
	"kooloffers.com",
	"korea.com",
	"legacy.it",
	"link2buy.com",
	"mail.com",
	"migada.com",
	"milespree.com",
	"nexdeals.com",
	"offer888.com",
	"offer888.net",
	"offerbymail.com",
	"opmnetwork.net",
	"polbox.com",
	"quickinspirations.com",
	"real-net.net",
	"rsc02.com",
	"sky08.com",
	"smartcruit.com",
	"speedi-list.com",
	"subscriberbase.net",
	"urbanasian.com",
	"venomjeans.com",
	"vmadmin.com",
	"winning.com",
	"xmr3.com",
	"xumx.com",
	"yahoo.com",
	"ynmail.com"] {
redirect "spamcatcher@wechsler.com";}

## if the subject line contains suspicious text, redirect to spamcatcher@wechsler.com

elsif header :contains "subject" [
	"          ",
	"adult",
	"adv",
	"*anything*about*anyone*",
	"cartridges",
	"credit",
	"*credit*card*",
	"dvd",
	"*find*out*",
	"free",
	"inkjet",
	"leads",
	"loans",
	"*look*great*",
	"*lower*interest*rates*",
	"*make*money*",
	"money",
	"*more*info*inside*",
	"mortgage",
	"mtg",
	"overweight",
	"*pay*off*",
	"penile",
	"penis",
	"refinance",
	"romance",
	"removal",
	"septic",
	"sex",
	"*teen*",
	"viagra",
	"xxx",
	"*you*may*have*"] {
redirect "spamcatcher@wechsler.com";}

## if the To, Cc, or Bcc fields do not match the following domains, redirect to spamcatcher@wechsler.com

elsif not address :domain :contains ["To", "Cc", "Bcc"] [
	"acm.org",
	"americansforathirdway.com",
	"artic.edu",
	"barebones.com",
	"bitterlemons.org",
	"bloomberg.com",
	"chartoftheday.com",
	"chowhound.com",
	"cnnimail12.cnn.com",
	"dailycandy.com",
	"darediablo.com",
	"deloitte.com",
	"envirolink.org",
	"girlsclub.org",
	"imc.org",
	"internetwire.com",
	"jiscmail.ac.uk",
	"list.ediets.com",
	"list.onetravel.com",
	"lists.evolt.org",
	"lists.samba.org",
	"lists.sierraclub.org",
	"listserv.acns.nwu.edu",
	"listserv.dowjones.com",
	"listserv.performancebike.com",
	"listserv.webster.m-w.com",
	"lockbox24.com",
	"lucas-online.info",
	"majordomo.pobox.com",
	"mariascoop.com",
	"mwhse.com",
	"nywici.org",
	"packer.edu",
	"pallottateamworks.com",
	"rosswords.com",
	"rtn.columbiarecordsemail.com",
	"shamash.org",
	"ssc.com",
	"structurehouse.com",
	"treebranch.com",
	"uiuc.edu",
	"velo.qc.ca",
	"webb.org",
	"webelists.com",
	"wechsler.com",
	"wordsmith.org",
	"workbookstock.com",
	"yahoogroups.com",
	"yiwh.org",
	"ysaleagues.com"] {
redirect "spamcatcher@wechsler.com";}

--Boundary_(ID_H5iM1ZasjtEatbNyQb10iw)--

