-
Notifications
You must be signed in to change notification settings - Fork 22
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
[WIP] Split ContactsCollection mailet #1308
base: master
Are you sure you want to change the base?
[WIP] Split ContactsCollection mailet #1308
Conversation
NO_REGISTRATION_KEYS) | ||
).collectList() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NO_REGISTRATION_KEYS) | |
).collectList() | |
NO_REGISTRATION_KEYS)) | |
.collectList() |
.map(AttributeValue::value) | ||
.map(Throwing.function(this::parseUserContacts)) | ||
.flatMap(Throwing.function(this::dispatchContactsAddedEvent)) | ||
.onErrorMap(e -> new MailetException("Failed to index contacts", new Exception(e))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are not on a critical feature, so we should WARN on error and avoid propagating the exception
@@ -0,0 +1,128 @@ | |||
package com.linagora.tmail.mailets; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we remove the old class?
Closes #1257
TODO
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.apache.james.transport.mailets.ContactExtractor$ExtractedContacts
ContactsCollection
leftovers (code, doc, tests, etc...)