Eike Kettner created JAMES-1464:
-----------------------------------

             Summary: 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: 3.0-beta4, Trunk
            Reporter: Eike Kettner


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to