[midPoint-git] [Evolveum/midpoint] c5381a: MID-11048 Add option to relax email address valida...

mederly noreply at github.com
Thu Apr 16 18:25:30 CEST 2026


  Branch: refs/heads/support-4.10
  Home:   https://github.com/Evolveum/midpoint
  Commit: c5381a29a83a8ec6404f1389e83bf49ed07ef010
      https://github.com/Evolveum/midpoint/commit/c5381a29a83a8ec6404f1389e83bf49ed07ef010
  Author: Hiroyuki Wada <h2-wada at nri.co.jp>
  Date:   2026-03-25 (Wed, 25 Mar 2026)

  Changed paths:
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/MailMessageTransport.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/legacy/LegacyMailTransport.java
    A model/notifications-impl/src/test/java/com/evolveum/midpoint/transport/impl/MailMessageTransportAddressParsingTest.java

  Log Message:
  -----------
  MID-11048 Add option to relax email address validation on send

By setting -Dmail.mime.address.strict=false as a JVM system property,
email addresses that do not strictly comply with RFC822
(e.g. consecutive dots in local part like user...name at example.com)
are now accepted.

We use the standard Jakarta Mail property "mail.mime.address.strict"
instead of a MidPoint-specific property (e.g. midpoint.mail.address.strict)
because MimeMessage.getAllRecipients() internally calls getAddressHeader()
which references this property. If a custom property were used, address
parsing in parseInternetAddress() would be non-strict, but
getAllRecipients() at send time would still parse strictly and fail.


  Commit: 566f152a8e8f29949583f481716cfc507d08e772
      https://github.com/Evolveum/midpoint/commit/566f152a8e8f29949583f481716cfc507d08e772
  Author: mederly <mederly at evolveum.com>
  Date:   2026-04-16 (Thu, 16 Apr 2026)

  Changed paths:
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/MailMessageTransport.java
    M model/notifications-impl/src/main/java/com/evolveum/midpoint/transport/impl/legacy/LegacyMailTransport.java
    A model/notifications-impl/src/test/java/com/evolveum/midpoint/transport/impl/MailMessageTransportAddressParsingTest.java

  Log Message:
  -----------
  Merge pull request #578 from openstandia/issue-11048

MID-11048 Add option to relax email address validation on send


Compare: https://github.com/Evolveum/midpoint/compare/1b365fbf5388...566f152a8e8f

To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list