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 "Eric Charles (JIRA)" <se...@james.apache.org> on 2013/01/03 16:18:18 UTC

[jira] [Resolved] (JAMES-1464) SieveMailet's post() impl does not use destination from supplied url

     [ https://issues.apache.org/jira/browse/JAMES-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Charles resolved JAMES-1464.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0-beta5
         Assignee: Eric Charles

Fix committed, thx Eike.
Eric
                
> SieveMailet's post() impl does not use destination from supplied url
> --------------------------------------------------------------------
>
>                 Key: JAMES-1464
>                 URL: https://issues.apache.org/jira/browse/JAMES-1464
>             Project: James Server
>          Issue Type: Bug
>          Components: Matchers/Mailets (bundled)
>    Affects Versions: Trunk, 3.0-beta4
>            Reporter: Eike Kettner
>            Assignee: Eric Charles
>             Fix For: 3.0-beta5
>
>
> In class `SieveMailet` (the one used in LocalDelivery mailet), the post() implementation first decodes the given url into its parts and carefully creates a `destination` string in line 192-196. 
> Then the MailboxPath is created with the default folder ("INBOX") and the destination variable is not used anymore except for one part of the following if-statement. The message is then appended to INBOX (this.folder) no matter which url is given into the post() method. I tried with a simple sieve script and observed no errors but the mail was not sorted into my folder.
> I tried with creating the mailbox-path using the `destination` variable and the sieve script now works for me:
> line 199
> - final MailboxPath path = new MailboxPath(MailboxConstants.USER_NAMESPACE, user, this.folder);
> +final MailboxPath path = new MailboxPath(MailboxConstants.USER_NAMESPACE, user, destination);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, 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