james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Brewin (JIRA)" <server-...@james.apache.org>
Subject [jira] Commented: (JSIEVE-11) Discard specified with other actions
Date Wed, 08 Dec 2004 20:49:10 GMT
     [ http://nagoya.apache.org/jira/browse/JSIEVE-11?page=comments#action_56405 ]
     
Steve Brewin commented on JSIEVE-11:
------------------------------------

>From RFC 3028, section 4.5. Action discard...

"Discard is used to silently throw away the message.  It does so by simply canceling the implicit
keep.  If discard is used with other actions, the other actions still happen.  Discard is
compatible with all other actions.  (For instance fileinto+discard is equivalent to fileinto.)"

I do not see anything in the spec. that says that discard cannot be followed by other actions.
While it may be a weird thing to do this would include a 'keep' action that reasserts the
keep state cancelled by 'discard'.

I am unclear as to if you concur with this interpretation of the spec. or our implemenentation
of it. 

If the latter, attaching a junit test that demonstrates the error would be cool as we can
add it to our testsuite once the agreed behaviour is determined.

-- Steve


> Discard specified with other actions
> ------------------------------------
>
>          Key: JSIEVE-11
>          URL: http://nagoya.apache.org/jira/browse/JSIEVE-11
>      Project: jSieve
>         Type: Improvement
>     Reporter: Kirk Chen

>
> What's the result of the following actions being executed?
> if condition
> {
>   discard;
>   keep;
> }
> It seems that discard cannot be combined with any other actions. Currently keep action
will be taken.
> One solution is requiring the client to validate this. Alternatively, add ActionDiscard
to the actions list in MailAdapter to allow validation later.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message