Rustam Aliyev created PROTOCOLS-105:
---------------------------------------
Summary: Improve POP3 TOP command by fetching whole message
instead of head/body separately
Key: PROTOCOLS-105
URL: https://issues.apache.org/jira/browse/PROTOCOLS-105
Project: James Protocols
Issue Type: Improvement
Components: pop3
Affects Versions: 1.6.3
Reporter: Rustam Aliyev
Assignee: Eric Charles
Priority: Minor
Currenlty, TOP command in POP3 Protocols uses Mailbox.getMessageHeaders() and
Mailbox.getMessageBody() to fetch parts separately and then concatenates them
to produce output.
It seems that this design was driven by specific James Server requirements and
good if headers and body stored separately. However, most mail servers store
messages as a single file. In that case, this design would require 2 reads of
the same file (two InputStreams).
Attached patch will use Mailbox.getMessage() and use only one InputStream to
produce response for TOP command.
In case if header and body are stored separately, it's always possible to
concatenate them within Mailbox.getMessage() implementation.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]