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

Extensible POP3 handlers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Done
    • master
    • None
    • POP3Server
    • None

    Description

      I propose a minor refactoring of the POP3 RetrCmdHandler, retrieving the message content in a separate protected method:

       

      protected InputStream getMessageContent(POP3Session session, MessageMetaData data)

      With this developers can more easily create custom variants of this command, to  access the session and message metadata, wrap the message stream to e.g. gather transfer statistics and monitor ultimate success/failure.

      Since the TopCmdHandler extends RetrCmdHandler, it can trivially use this method as well for the same benefit.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kotto Karsten Otto
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 2h 20m
                  2h 20m