You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Craig Cudmore <cr...@cudmore.ca> on 2018/02/19 12:20:04 UTC

ToRepository mailet

Can someone confirm how the ToRepository mailet should be functioning in 3.0.1?

I have the following in mailetcontainer.xml
       <mailet match="All" class="ToRepository">
          <repositoryPath>file://var/mail/james</repositoryPath>
          <passThrough>true</passThrough>
       </mailet>

The log shows:
DEBUG 22:42:32,395 | james.mailetcontext | Entering mailet: ToRepository Mailet
        mail state root
INFO  22:42:32,395 | james.mailetcontext | Storing mail Mail1519011751172-ced03bba-4fc9-4646-8d62-7f2cec95110f in file://var/mail/james
DEBUG 22:42:32,401 | james.mailetcontext | End of mailet: ToRepository Mailet

However /var/mail/james is empty after the call.

Anyone with any thoughts?


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: ToRepository mailet

Posted by Craig Cudmore <cr...@cudmore.ca>.
Only minutes after I sent this I found the solution. The location is
relative to the james install directory, not absolute. So /var/mail/james
is actually /usr/local/james/var/mail/james

On Mon, Feb 19, 2018 at 7:20 AM, Craig Cudmore <cr...@cudmore.ca> wrote:

> Can someone confirm how the ToRepository mailet should be functioning in
> 3.0.1?
>
> I have the following in mailetcontainer.xml
>        <mailet match="All" class="ToRepository">
>           <repositoryPath>file://var/mail/james</repositoryPath>
>           <passThrough>true</passThrough>
>        </mailet>
>
> The log shows:
> DEBUG 22:42:32,395 | james.mailetcontext | Entering mailet: ToRepository
> Mailet
>         mail state root
> INFO  22:42:32,395 | james.mailetcontext | Storing mail
> Mail1519011751172-ced03bba-4fc9-4646-8d62-7f2cec95110f in
> file://var/mail/james
> DEBUG 22:42:32,401 | james.mailetcontext | End of mailet: ToRepository
> Mailet
>
> However /var/mail/james is empty after the call.
>
> Anyone with any thoughts?
>
>