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

Interface for LocalResources and MailboxAppender

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7.0
    • None
    • Mailet Contributions
    • None

    Description

      See https://www.mail-archive.com/server-dev@james.apache.org/msg71116.html

      Put an interface in front of LocalResources

      We need functional mailboxes email addresses to be considered as "local
      addresses" by the mailet processing.

      LocalResources is the class called by the mailets / matchers to have a
      notin of "Is this local".

      Thus to address the above points, we need to overload it in order to add
      to it the notion of "functional mailboxes" in our code base.

      Rename |LocalResources| into |LocalResourcesImpl| and put it behind an
      interface. This would empower overloading.

      Have an interface for MailboxAppender in james-server-mailets

      We would like to be able to decorate "LocalDelivery" mailet in order to
      add to it the notion of functional mailboxes.

      MailboxAppender is the class actually putting the message in ones mailbox.

      However, today, the MailboxAppender is a concrete class. Hard to overload...

      We would put MailboxAppender behind an interface and have a

      MailboxAppenderImpl.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m