Toggle navigation
Home
javax.mail.internet.MimeMessage to org.apache.mailet.Mail
No. of Instances - 8
No. of Commits - 3
No. of Projects - {'james-project'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: External -> Internal
Mapping:
Rename Variable
message
to
mail
mimeMessage
to
mail
Add or Remove Method invocation
Optional.ofNullable(mimeMessage.getSender()).map(Address::toString)
to
Optional.of(mail.getSender()).map(MailAddress::asString)
Throwing.predicate(sender -> hasRecipients(mimeMessage))
to
Throwing.predicate(sender -> hasRecipients(message))
Throwing.function(sender -> new ExtractedContacts(sender,recipients(mimeMessage)))
to
Throwing.function(sender -> new ExtractedContacts(sender,recipients(message)))
Throwing.function(message -> objectMapper.writeValueAsString(message))
to
Throwing.function(extractedContacts -> objectMapper.writeValueAsString(extractedContacts))