Home | History | Annotate | Download | only in imap
      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 {
     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 CREATE = "CREATE";
     44     public static final String DELETE = "DELETE";
     45     public static final String EXAMINE = "EXAMINE";
     46     public static final String EXISTS = "EXISTS";
     47     public static final String EXPUNGE = "EXPUNGE";
     48     public static final String FETCH = "FETCH";
     49     public static final String FLAG_ANSWERED = "\\ANSWERED";
     50     public static final String FLAG_DELETED = "\\DELETED";
     51     public static final String FLAG_FLAGGED = "\\FLAGGED";
     52     public static final String FLAG_NO_SELECT = "\\NOSELECT";
     53     public static final String FLAG_SEEN = "\\SEEN";
     54     public static final String FLAGS = "FLAGS";
     55     public static final String FLAGS_SILENT = "FLAGS.SILENT";
     56     public static final String ID = "ID";
     57     public static final String INBOX = "INBOX";
     58     public static final String INTERNALDATE = "INTERNALDATE";
     59     public static final String LIST = "LIST";
     60     public static final String LOGIN = "LOGIN";
     61     public static final String LOGOUT = "LOGOUT";
     62     public static final String LSUB = "LSUB";
     63     public static final String NO = "NO";
     64     public static final String NOOP = "NOOP";
     65     public static final String OK = "OK";
     66     public static final String PARSE = "PARSE";
     67     public static final String PERMANENTFLAGS = "PERMANENTFLAGS";
     68     public static final String PREAUTH = "PREAUTH";
     69     public static final String READ_ONLY = "READ-ONLY";
     70     public static final String READ_WRITE = "READ-WRITE";
     71     public static final String RENAME = "RENAME";
     72     public static final String RFC822_SIZE = "RFC822.SIZE";
     73     public static final String SEARCH = "SEARCH";
     74     public static final String SELECT = "SELECT";
     75     public static final String STARTTLS = "STARTTLS";
     76     public static final String STATUS = "STATUS";
     77     public static final String STORE = "STORE";
     78     public static final String SUBSCRIBE = "SUBSCRIBE";
     79     public static final String TEXT = "TEXT";
     80     public static final String TRYCREATE = "TRYCREATE";
     81     public static final String UID = "UID";
     82     public static final String UID_COPY = "UID COPY";
     83     public static final String UID_FETCH = "UID FETCH";
     84     public static final String UID_SEARCH = "UID SEARCH";
     85     public static final String UID_STORE = "UID STORE";
     86     public static final String UIDNEXT = "UIDNEXT";
     87     public static final String UIDVALIDITY = "UIDVALIDITY";
     88     public static final String UNSEEN = "UNSEEN";
     89     public static final String UNSUBSCRIBE = "UNSUBSCRIBE";
     90     public static final String APPENDUID = "APPENDUID";
     91     public static final String NIL = "NIL";
     92 }
     93