You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/05/04 01:10:56 UTC

[james-project] 01/12: [PERF] IMAP FETCH: Fasten flags writing

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 59082f24be56d7c49a1209160f5b76da56cc35ba
Author: Loan <tl...@linagora.com>
AuthorDate: Tue Apr 26 10:28:13 2022 +0700

    [PERF] IMAP FETCH: Fasten flags writing
---
 .../org/apache/james/imap/encode/base/ImapResponseComposerImpl.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/protocols/imap/src/main/java/org/apache/james/imap/encode/base/ImapResponseComposerImpl.java b/protocols/imap/src/main/java/org/apache/james/imap/encode/base/ImapResponseComposerImpl.java
index 597510dd0a..f266e70a2e 100644
--- a/protocols/imap/src/main/java/org/apache/james/imap/encode/base/ImapResponseComposerImpl.java
+++ b/protocols/imap/src/main/java/org/apache/james/imap/encode/base/ImapResponseComposerImpl.java
@@ -42,9 +42,8 @@ import org.apache.james.imap.utils.FastByteArrayOutputStream;
  */
 public class ImapResponseComposerImpl implements ImapConstants, ImapResponseComposer {
 
-    public static final String FLAGS = "FLAGS";
+    public static final byte[] FLAGS = "FLAGS".getBytes(US_ASCII);
 
-    public static final String FAILED = "failed.";
     private static final int LOWER_CASE_OFFSET = 'a' - 'A';
     public static final int DEFAULT_BUFFER_SIZE = 2048;
     private static final byte[] SEEN = "\\Seen".getBytes(US_ASCII);


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org