You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Rustam Aliyev (JIRA)" <ji...@apache.org> on 2013/02/11 01:13:12 UTC

[jira] [Updated] (PROTOCOLS-105) Improve POP3 TOP command by fetching whole message instead of head/body separately

     [ https://issues.apache.org/jira/browse/PROTOCOLS-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rustam Aliyev updated PROTOCOLS-105:
------------------------------------

    Attachment: TopCmdHandler.java.patch
    
> 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
>         Attachments: TopCmdHandler.java.patch
>
>
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org