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

Attributes on Mail needed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 2.1
    • None
    • None
    • Operating System: Linux
      Platform: All
    • 18471

    Description

      Hi,

      What I propose is to extend the Mail interface in the Mailet SDK with the
      following methods:

      Object getAttribute(String name);
      Iterator getAttributeNames();
      void removeAttribute(String name);
      void setAttribute(String name, Object object);

      The reason is that it will allow Mailet developers to pass, Mail processing
      information between different Mailets which are related to the particular Mail
      in question and not the common context for the Mailets. If you now register
      such mail related attributes in the MailetContext, you will get yourself into
      trouble when several Mails are processed in different threads by different
      Mailets.

      The Mail object actually acts as a sort of Session object, but a developer
      cannot register anything on this Session.

      This change will also put the Mailet api more in line with the Servlet api,
      which allows setting of attributes on bothe the ServletContext and the
      HttpSession.

      Regards
      Søren

      P.S. I will be implementing this, so I will be happy to contribute, if this
      proposal gets approved.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sh@itplus.dk Soren Hilmer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: