class MessageHeaderViewFactory implements MessageViewFactory<MessageHeaderView> {

    @Override
    public Flux<MessageHeaderView> fromMessageIds(List<MessageId> messageIds, MailboxSession mailboxSession) {
        Flux<MessageResult> messages = Flux.from(messageIdManager.getMessagesReactive(messageIds, FetchGroup.HEADERS, mailboxSession));
        return Helpers.toMessageViews(messages, this::fromMessageResults);
    }

    @Inject @VisibleForTesting public  MessageHeaderViewFactory(BlobManager blobManager, MessageIdManager messageIdManager);

}