You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Steve Brewin (JIRA)" <se...@james.apache.org> on 2004/12/08 21:49:10 UTC

[jira] Commented: (JSIEVE-11) Discard specified with other actions

     [ 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