Hi Mat,

Just ping mailing list if you want more help on your devs, we'll do it with pleasure.
Also, for your info, we will review soon the way mails are delivered.

Tks,
Eric


On 18/01/2011 09:37, math math wrote:
Hi,
thank you for your fast answer.
I didn't succeed yet but i'm on my way...I've tried to inject MailBoxManager in a LocalDelivery instance to use the sieveMailet. I created beans based on spring-beans.xml but i got a sessionMapperFactory due to AbstractMethodError: org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;

Thx.
Mat

2011/1/17 Eric Charles <e...@apache.org <mailto:e...@apache.org>>

    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
    <mailto:server-dev-unsubscr...@james.apache.org>
    For additional commands, e-mail: server-dev-h...@james.apache.org
    <mailto:server-dev-h...@james.apache.org>



Reply via email to