Hi,
The mails store magic occurs in LocalDelivery where the MailboxManager is injected. (more precise, LocalDelivery uses the SieveMailet initialized with the MailboxManager)
        sieveMailet.setUsersRepository(usersRepository);
        sieveMailet.setMailboxManager(mailboxManager);
        sieveMailet.init(m);
        sieveMailet.setQuiet(true);
...
        if (mail.getState() != Mail.GHOST) {
            sieveMailet.service(mail);
        }

You only need to know that *MailRepository is not for users' mail storage
http://james.apache.org/server/3/feature-persistence.html

Both topics (mailet usage for delivery + separate mail stores) are subject to discussion will certainly change.

Tks,

Eric


On 17/01/2011 11:43, math math wrote:
Hello everybody,

I am developping a web mail project using james 3M2. I'm trying to store
mails in a "james3" way with an external application using MySql DB. I've
tried to store mails using mysq database repositories for a few days now but
i didn't succeed to do so... I 've traced the store method of
JDBCMailRepository class and also the ToRepository one. But still don't know
how James 3 is storing mails in the DB.

I would be very glad if someone could help me in this task.

Thanks,
Mat



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

Reply via email to