Skip to content

Commit

Permalink
Merge pull request #334 from edwardcwang/patch-1
Browse files Browse the repository at this point in the history
Respect custom Message-IDs in JavaMail backend
  • Loading branch information
eikek authored Feb 17, 2022
2 parents 43f5e1d + 3da9780 commit 90ff600
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object SendMail {
logger.debugF(s"Sending ${mails.size} mail(s) using ${conn.config}") *>
mails.traverse { mail =>
ThreadClassLoader {
cm.convert(conn.session, MessageIdEncode.Random, mail).flatMap { msg =>
cm.convert(conn.session, MessageIdEncode.GivenOrRandom, mail).flatMap { msg =>
val msgId = checkMessageID(msg)
Sync[F].blocking {
logger.debug(s"Sending message: ${infoLine(mail.header)}, $msgId")
Expand Down

0 comments on commit 90ff600

Please sign in to comment.