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:
- final MailboxPath path = new MailboxPath(MailboxConstants.USER_NAMESPACE, user, this.folder);
+final MailboxPath path = new MailboxPath(MailboxConstants.USER_NAMESPACE, user, destination);