james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eike Kettner (JIRA)" <server-...@james.apache.org>
Subject [jira] [Created] (JAMES-1464) SieveMailet's post() impl does not use destination from supplied url
Date Thu, 03 Jan 2013 13:32:14 GMT
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message