Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Done
-
master
-
None
-
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
- links to