Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim smtp #711

Closed
wants to merge 4 commits into from
Closed

Trim smtp #711

wants to merge 4 commits into from

Conversation

mbaechler
Copy link

you can review if you want, but I know that there's ticket number missing.

@chibenwa
Copy link
Member

I do always really like your PRs ^^

If interesting, we can always create ticket while merging don't worry.

Copy link
Member

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[25,44] package org.apache.james.mailbox.store.quota does not exist
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[26,44] package org.apache.james.mailbox.store.quota does not exist
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[27,44] package org.apache.james.mailbox.store.quota does not exist
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[22,44] package org.apache.james.mailbox.store.event does not exist
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[23,44] package org.apache.james.mailbox.store.event does not exist
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[24,44] package org.apache.james.mailbox.store.event does not exist
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[25,44] package org.apache.james.mailbox.store.event does not exist
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[36,14] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class NoQuotaManager
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultQuotaModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[37,14] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class DefaultQuotaRootResolver
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultQuotaModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[38,14] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class NoMaxQuotaManager
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultQuotaModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[40,40] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class NoMaxQuotaManager
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultQuotaModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[41,37] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class NoQuotaManager
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultQuotaModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultQuotaModule.java:[42,42] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class DefaultQuotaRootResolver
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultQuotaModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[34,14] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class DefaultDelegatingMailboxListener
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultEventModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[35,50] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class DefaultDelegatingMailboxListener
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultEventModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[35,14] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class DelegatingMailboxListener
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultEventModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[37,14] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class SynchronousEventDelivery
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultEventModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[38,38] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class SynchronousEventDelivery
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultEventModule
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08] [ERROR] /james-project/server/container/guice/guice-common/src/main/java/org/apache/james/modules/mailbox/DefaultEventModule.java:[38,14] cannot find symbol
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   symbol:   class EventDelivery
[Building Java 8 trim-smtp-22f80e98-9e22-45ec-bcab-81aed73ffe08]   location: class org.apache.james.modules.mailbox.DefaultEventModule

This do means that mailbox-store is kind of required for event module and quota module.

I would propose you to create a guice-mailbox-default dependancy where you can put these two modules. Cheers!

@@ -0,0 +1,9 @@
package org.apache.james.modules;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

License

@@ -0,0 +1,212 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Licence

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still no license

@chibenwa
Copy link
Member

Btw why trim SMTP ?

Copy link

@quynhn quynhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's refactor a lot 👍

@mbaechler
Copy link
Author

Btw why trim SMTP ?

Because it's one of the 3 use cases we decided to have in james 3 : full server with distributed backend (C* + ES), full server in single node (JPA + lucene) and smtp only for mailet pipeline.

And I don't like pulling tons of useless projects for that use case.

More generally, we need to clean up our dependencies and starting with smtp is a good test case.

@mbaechler
Copy link
Author

I would propose you to create a guice-mailbox-default dependancy where you can put these two modules.

There's already a guice-mailbox. I think that default impl could be put there for now.

Copy link

@rouazana rouazana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just clean your history and add the missing licence, and that's a 👍

@chibenwa
Copy link
Member

Merged with added licenses and created Apache ticket

@chibenwa chibenwa closed this Mar 24, 2017
chibenwa pushed a commit to chibenwa/james-project that referenced this pull request Oct 28, 2021
chibenwa pushed a commit to chibenwa/james-project that referenced this pull request Oct 28, 2021
chibenwa pushed a commit to chibenwa/james-project that referenced this pull request Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants