Build: #29 failed Changes by Artem Bilan

Code commits

Plan Repository (main)

  • Artem Bilan

    Artem Bilan b84b60c732699a4022e3221f6fb4a7f4319319fa

    GH-3560 Parse mail FROM as comma-delimited header (#3562)
    Fixes https://github.com/spring-projects/spring-integration/issues/3560

    According RFC 5322 `FROM` and `REPLY-TO` received mail message can be
    as an array of addresses.

    * Fix `MailUtils` to present those arrays as comma-delimited strings for
    Spring message headers
    * Fix tests to deal already with several addresses for `FROM` mime header.

    In the future we may change the logic to map those mime headers to arrays
    as it states according the mentioned RFC

    **Cherry-pick to `5.4.x` & `5.3.x`**

    • spring-integration-mail/src/main/java/org/springframework/integration/mail/support/MailUtils.java (version b84b60c732699a4022e3221f6fb4a7f4319319fa)
    • spring-integration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java (version b84b60c732699a4022e3221f6fb4a7f4319319fa)
    • spring-integration-mail/src/test/java/org/springframework/integration/mail/config/Pop3Tests.java (version b84b60c732699a4022e3221f6fb4a7f4319319fa)
    • spring-integration-mail/src/test/java/org/springframework/integration/mail/dsl/MailTests.java (version b84b60c732699a4022e3221f6fb4a7f4319319fa)
    • spring-integration-test-support/src/main/java/org/springframework/integration/test/mail/TestMailServer.java (version b84b60c732699a4022e3221f6fb4a7f4319319fa)