• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*
2   * Copyright (C) 2010 The Android Open Source Project
3   *
4   * Licensed under the Apache License, Version 2.0 (the "License");
5   * you may not use this file except in compliance with the License.
6   * You may obtain a copy of the License at
7   *
8   *      http://www.apache.org/licenses/LICENSE-2.0
9   *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package com.android.email.mail.store.imap;
18  
19  import com.android.email.mail.Store;
20  
21  public final class ImapConstants {
ImapConstants()22      private ImapConstants() {}
23  
24      public static final String FETCH_FIELD_BODY_PEEK_BARE = "BODY.PEEK";
25      public static final String FETCH_FIELD_BODY_PEEK = FETCH_FIELD_BODY_PEEK_BARE + "[]";
26      public static final String FETCH_FIELD_BODY_PEEK_SANE
27              = String.format("BODY.PEEK[]<0.%d>", Store.FETCH_BODY_SANE_SUGGESTED_SIZE);
28      public static final String FETCH_FIELD_HEADERS =
29              "BODY.PEEK[HEADER.FIELDS (date subject from content-type to cc message-id)]";
30  
31      public static final String ALERT = "ALERT";
32      public static final String APPEND = "APPEND";
33      public static final String BAD = "BAD";
34      public static final String BADCHARSET = "BADCHARSET";
35      public static final String BODY = "BODY";
36      public static final String BODY_BRACKET_HEADER = "BODY[HEADER";
37      public static final String BODYSTRUCTURE = "BODYSTRUCTURE";
38      public static final String BYE = "BYE";
39      public static final String CAPABILITY = "CAPABILITY";
40      public static final String CHECK = "CHECK";
41      public static final String CLOSE = "CLOSE";
42      public static final String COPY = "COPY";
43      public static final String COPYUID = "COPYUID";
44      public static final String CREATE = "CREATE";
45      public static final String DELETE = "DELETE";
46      public static final String EXAMINE = "EXAMINE";
47      public static final String EXISTS = "EXISTS";
48      public static final String EXPUNGE = "EXPUNGE";
49      public static final String FETCH = "FETCH";
50      public static final String FLAG_ANSWERED = "\\ANSWERED";
51      public static final String FLAG_DELETED = "\\DELETED";
52      public static final String FLAG_FLAGGED = "\\FLAGGED";
53      public static final String FLAG_NO_SELECT = "\\NOSELECT";
54      public static final String FLAG_SEEN = "\\SEEN";
55      public static final String FLAGS = "FLAGS";
56      public static final String FLAGS_SILENT = "FLAGS.SILENT";
57      public static final String ID = "ID";
58      public static final String INBOX = "INBOX";
59      public static final String INTERNALDATE = "INTERNALDATE";
60      public static final String LIST = "LIST";
61      public static final String LOGIN = "LOGIN";
62      public static final String LOGOUT = "LOGOUT";
63      public static final String LSUB = "LSUB";
64      public static final String NAMESPACE = "NAMESPACE";
65      public static final String NO = "NO";
66      public static final String NOOP = "NOOP";
67      public static final String OK = "OK";
68      public static final String PARSE = "PARSE";
69      public static final String PERMANENTFLAGS = "PERMANENTFLAGS";
70      public static final String PREAUTH = "PREAUTH";
71      public static final String READ_ONLY = "READ-ONLY";
72      public static final String READ_WRITE = "READ-WRITE";
73      public static final String RENAME = "RENAME";
74      public static final String RFC822_SIZE = "RFC822.SIZE";
75      public static final String SEARCH = "SEARCH";
76      public static final String SELECT = "SELECT";
77      public static final String STARTTLS = "STARTTLS";
78      public static final String STATUS = "STATUS";
79      public static final String STORE = "STORE";
80      public static final String SUBSCRIBE = "SUBSCRIBE";
81      public static final String TEXT = "TEXT";
82      public static final String TRYCREATE = "TRYCREATE";
83      public static final String UID = "UID";
84      public static final String UID_COPY = "UID COPY";
85      public static final String UID_FETCH = "UID FETCH";
86      public static final String UID_SEARCH = "UID SEARCH";
87      public static final String UID_STORE = "UID STORE";
88      public static final String UIDNEXT = "UIDNEXT";
89      public static final String UIDPLUS = "UIDPLUS";
90      public static final String UIDVALIDITY = "UIDVALIDITY";
91      public static final String UNSEEN = "UNSEEN";
92      public static final String UNSUBSCRIBE = "UNSUBSCRIBE";
93      public static final String APPENDUID = "APPENDUID";
94      public static final String NIL = "NIL";
95  }
96