vttranlina commented on code in PR #1276:
URL: https://github.com/apache/james-project/pull/1276#discussion_r1006649400


##########
third-party/rspamd/src/main/java/org/apache/james/rspamd/task/GetMailboxMessagesService.java:
##########
@@ -109,8 +109,8 @@ private Flux<MessageResult> 
getMailboxMessagesOfAUser(Username username, Mailbox
         return 
Mono.from(mailboxManager.getMailboxReactive(mailboxMetaData.getId(), 
mailboxSession))
             .map(Throwing.function(MessageManager::getMailboxEntity))
             .flatMapMany(Throwing.function(mailbox -> 
mapperFactory.getMessageMapper(mailboxSession).findInMailboxReactive(mailbox, 
MessageRange.all(), MessageMapper.FetchType.METADATA, UNLIMITED)))
-            .doOnNext(mailboxMessageMetaData -> 
context.incrementHamMessageCount())
             .filter(mailboxMessageMetaData -> afterDate.map(date -> 
mailboxMessageMetaData.getInternalDate().after(date)).orElse(true))

Review Comment:
   Q:
   why we don't check null for case `mailboxMessageMetaData.getInternalDate()` ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to