You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <ji...@apache.org> on 2011/04/27 07:40:03 UTC
[jira] [Created] (MAILBOX-61) Merge MailboxMembership and Message
interfaces and implementation
Merge MailboxMembership and Message interfaces and implementation
-----------------------------------------------------------------
Key: MAILBOX-61
URL: https://issues.apache.org/jira/browse/MAILBOX-61
Project: James Mailbox
Issue Type: Task
Components: jcr mailbox, jpa mailbox, maildir mailbox, store
Reporter: Norman Maurer
Assignee: Norman Maurer
Fix For: 0.2
At the moment we have the MailboxMembership and the Message interfaces to represend a Message which is stored in a Mailbox. This makes things more complex as they should be without any gain. We should better merge this two interfaces and the implementations.
Special care need to get taken for the JPA implementation as we need some kind of "migration script" here.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] [Commented] (MAILBOX-61) Merge MailboxMembership and Message
interfaces and implementation
Posted by "Eric Charles (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAILBOX-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025653#comment-13025653 ]
Eric Charles commented on MAILBOX-61:
-------------------------------------
Currently, if 1 messages is copied, JPA considers that one entry in mailbox is enough, and creates as many mailboxmembership as copies.
I suppose we will have to create two rows in JAMES_MESSAGE table if we merge. I don't see any problem with this, just a simple check to see if this will be the case.
Do we really need migration scripts? We are still in milestone phase. Maybe we should ask in a separate thread on mailing list.
An alternative to avoid SQL migration scripts would be to copy jpa-mailbox to maildir-mailbox, recreate database and recopy maildir-mailbox to jpa-mailbox.
I made this sometime ago and was more happy that having to apply long running SQL scripts. Going to SQL has also a risk to deal with database specifies.
> Merge MailboxMembership and Message interfaces and implementation
> -----------------------------------------------------------------
>
> Key: MAILBOX-61
> URL: https://issues.apache.org/jira/browse/MAILBOX-61
> Project: James Mailbox
> Issue Type: Task
> Components: jcr mailbox, jpa mailbox, maildir mailbox, store
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Fix For: 0.2
>
>
> At the moment we have the MailboxMembership and the Message interfaces to represend a Message which is stored in a Mailbox. This makes things more complex as they should be without any gain. We should better merge this two interfaces and the implementations.
> Special care need to get taken for the JPA implementation as we need some kind of "migration script" here.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] [Updated] (MAILBOX-61) Merge MailboxMembership and Message
interfaces and implementation
Posted by "Eric Charles (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAILBOX-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Charles updated MAILBOX-61:
--------------------------------
Attachment: db-schema-after-refactoring.png
Attached the relations after refactoring.
With http://svn.apache.org/viewvc?rev=1097708&view=rev, we have cascade delete for Mailbox. This means that a DELETE FROM Mailbox where mailbox_ID=... will delete all mails.
I think (not sure) that this was not the case before.
This is good if the API prevents to delete a mailbox and all its mails by error (so check if mails exists, and warn user that mailbox is not empty).
> Merge MailboxMembership and Message interfaces and implementation
> -----------------------------------------------------------------
>
> Key: MAILBOX-61
> URL: https://issues.apache.org/jira/browse/MAILBOX-61
> Project: James Mailbox
> Issue Type: Task
> Components: jcr mailbox, jpa mailbox, maildir mailbox, store
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Fix For: 0.2
>
> Attachments: db-schema-after-refactoring.png
>
>
> At the moment we have the MailboxMembership and the Message interfaces to represend a Message which is stored in a Mailbox. This makes things more complex as they should be without any gain. We should better merge this two interfaces and the implementations.
> Special care need to get taken for the JPA implementation as we need some kind of "migration script" here.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] [Commented] (MAILBOX-61) Merge MailboxMembership and Message
interfaces and implementation
Posted by "Eric Charles (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAILBOX-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025715#comment-13025715 ]
Eric Charles commented on MAILBOX-61:
-------------------------------------
To be more clear, I think that's a good idea, so go ahead :)
> Merge MailboxMembership and Message interfaces and implementation
> -----------------------------------------------------------------
>
> Key: MAILBOX-61
> URL: https://issues.apache.org/jira/browse/MAILBOX-61
> Project: James Mailbox
> Issue Type: Task
> Components: jcr mailbox, jpa mailbox, maildir mailbox, store
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Fix For: 0.2
>
>
> At the moment we have the MailboxMembership and the Message interfaces to represend a Message which is stored in a Mailbox. This makes things more complex as they should be without any gain. We should better merge this two interfaces and the implementations.
> Special care need to get taken for the JPA implementation as we need some kind of "migration script" here.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] [Resolved] (MAILBOX-61) Merge MailboxMembership and Message
interfaces and implementation
Posted by "Norman Maurer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAILBOX-61?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer resolved MAILBOX-61.
----------------------------------
Resolution: Fixed
done
> Merge MailboxMembership and Message interfaces and implementation
> -----------------------------------------------------------------
>
> Key: MAILBOX-61
> URL: https://issues.apache.org/jira/browse/MAILBOX-61
> Project: James Mailbox
> Issue Type: Task
> Components: jcr mailbox, jpa mailbox, maildir mailbox, store
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Fix For: 0.2
>
> Attachments: db-schema-after-refactoring.png
>
>
> At the moment we have the MailboxMembership and the Message interfaces to represend a Message which is stored in a Mailbox. This makes things more complex as they should be without any gain. We should better merge this two interfaces and the implementations.
> Special care need to get taken for the JPA implementation as we need some kind of "migration script" here.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] [Commented] (MAILBOX-61) Merge MailboxMembership and Message
interfaces and implementation
Posted by "Norman Maurer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAILBOX-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025706#comment-13025706 ]
Norman Maurer commented on MAILBOX-61:
--------------------------------------
No its just that the MailboxMembership and the Message table will get merged (no need for the join either).
About the migration scripts we should maybe tell users just to export to jcr/maildir whatever and reimport again later to jpa ?
> Merge MailboxMembership and Message interfaces and implementation
> -----------------------------------------------------------------
>
> Key: MAILBOX-61
> URL: https://issues.apache.org/jira/browse/MAILBOX-61
> Project: James Mailbox
> Issue Type: Task
> Components: jcr mailbox, jpa mailbox, maildir mailbox, store
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Fix For: 0.2
>
>
> At the moment we have the MailboxMembership and the Message interfaces to represend a Message which is stored in a Mailbox. This makes things more complex as they should be without any gain. We should better merge this two interfaces and the implementations.
> Special care need to get taken for the JPA implementation as we need some kind of "migration script" here.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
[jira] [Commented] (MAILBOX-61) Merge MailboxMembership and Message
interfaces and implementation
Posted by "Eric Charles (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/MAILBOX-61?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025710#comment-13025710 ]
Eric Charles commented on MAILBOX-61:
-------------------------------------
Will double check, but I expect double row in message with content in case of copy. Before we had single row with content in case of copy. Just a detail and need to check...
Yep, export mailbox to maildir/jcr, migrate and reimport is already documented in web site atm for M2 to upcoming-M3 migration. So no need for SQL scripts :)
> Merge MailboxMembership and Message interfaces and implementation
> -----------------------------------------------------------------
>
> Key: MAILBOX-61
> URL: https://issues.apache.org/jira/browse/MAILBOX-61
> Project: James Mailbox
> Issue Type: Task
> Components: jcr mailbox, jpa mailbox, maildir mailbox, store
> Reporter: Norman Maurer
> Assignee: Norman Maurer
> Fix For: 0.2
>
>
> At the moment we have the MailboxMembership and the Message interfaces to represend a Message which is stored in a Mailbox. This makes things more complex as they should be without any gain. We should better merge this two interfaces and the implementations.
> Special care need to get taken for the JPA implementation as we need some kind of "migration script" here.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org