public class MailProcessor
extends java.lang.Object
MailMessage
to a change.Constructor and Description |
---|
MailProcessor(Emails emails,
InboundEmailRejectionSender.Factory emailRejectionSender,
RetryHelper retryHelper,
ChangeMessagesUtil changeMessagesUtil,
CommentsUtil commentsUtil,
OneOffRequestContext oneOffRequestContext,
PatchListCache patchListCache,
PatchSetUtil psUtil,
com.google.inject.Provider<InternalChangeQuery> queryProvider,
DynamicMap<MailFilter> mailFilters,
EmailReviewComments.Factory outgoingMailFactory,
ApprovalsUtil approvalsUtil,
CommentAdded commentAdded,
AccountCache accountCache,
DynamicItem<UrlFormatter> urlFormatter) |
Modifier and Type | Method and Description |
---|---|
void |
process(com.google.gerrit.mail.MailMessage message)
Parses comments from a
MailMessage and persists them on the change. |
@Inject public MailProcessor(Emails emails, InboundEmailRejectionSender.Factory emailRejectionSender, RetryHelper retryHelper, ChangeMessagesUtil changeMessagesUtil, CommentsUtil commentsUtil, OneOffRequestContext oneOffRequestContext, PatchListCache patchListCache, PatchSetUtil psUtil, com.google.inject.Provider<InternalChangeQuery> queryProvider, DynamicMap<MailFilter> mailFilters, EmailReviewComments.Factory outgoingMailFactory, ApprovalsUtil approvalsUtil, CommentAdded commentAdded, AccountCache accountCache, DynamicItem<UrlFormatter> urlFormatter)
public void process(com.google.gerrit.mail.MailMessage message) throws RestApiException, UpdateException
MailMessage
and persists them on the change.message
- MailMessage
to processRestApiException
UpdateException