Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1464

SieveMailet's post() impl does not use destination from supplied url

    XMLWordPrintableJSON

Details

    Description

      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);

      Attachments

        Activity

          People

            eric@apache.org Eric Charles
            eikek Eike Kettner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: