Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2516

Create a SenderDomainId && RecipeintDomainIs matchers

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Mailet Contributions
    • Labels:

      Description

      Nowadays users needs tricks with RecipientIsRegex & SenderIsRegex for handling users of specific domains in a customized way in mailet processing. We need to provide utilities for avoiding such a hack.

      In `mailet/standard` create two matchers (and their unit tests):

      • SenderDomainId will look at the envelope sender's domain. If equal to configured value, then all recipients will be returned. Overwise an empty list will be returned.
      • RecipientDomainIs will return recipients mathcing a configured domain.

      Please note that a valid domain needs to be configured, according to James core Domain model.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              BTellier Tellier Benoit
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: