Source for gnu.inet.imap.IMAPConstants

   1: /*
   2:  * IMAPConstants.java
   3:  * Copyright (C) 2003,2004 The Free Software Foundation
   4:  * 
   5:  * This file is part of GNU inetlib, a library.
   6:  * 
   7:  * GNU inetlib is free software; you can redistribute it and/or modify
   8:  * it under the terms of the GNU General Public License as published by
   9:  * the Free Software Foundation; either version 2 of the License, or
  10:  * (at your option) any later version.
  11:  * 
  12:  * GNU inetlib is distributed in the hope that it will be useful,
  13:  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14:  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15:  * GNU General Public License for more details.
  16:  * 
  17:  * You should have received a copy of the GNU General Public License
  18:  * along with this library; if not, write to the Free Software
  19:  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20:  * 
  21:  * Linking this library statically or dynamically with other modules is
  22:  * making a combined work based on this library.  Thus, the terms and
  23:  * conditions of the GNU General Public License cover the whole
  24:  * combination.
  25:  *
  26:  * As a special exception, the copyright holders of this library give you
  27:  * permission to link this library with independent modules to produce an
  28:  * executable, regardless of the license terms of these independent
  29:  * modules, and to copy and distribute the resulting executable under
  30:  * terms of your choice, provided that you also meet, for each linked
  31:  * independent module, the terms and conditions of the license of that
  32:  * module.  An independent module is a module which is not derived from
  33:  * or based on this library.  If you modify this library, you may extend
  34:  * this exception to your version of the library, but you are not
  35:  * obliged to do so.  If you do not wish to do so, delete this
  36:  * exception statement from your version.
  37:  */
  38: 
  39: package gnu.inet.imap;
  40: 
  41: /**
  42:  * IMAP4rev1 string constants.
  43:  *
  44:  * @author <a href='mailto:dog@gnu.org'>Chris Burdess</a>
  45:  */
  46: public interface IMAPConstants
  47: {
  48: 
  49:   // Client commands
  50:   public static final String CAPABILITY = "CAPABILITY";
  51:   public static final String NOOP = "NOOP";
  52:   public static final String AUTHENTICATE = "AUTHENTICATE";
  53:   public static final String LOGIN = "LOGIN";
  54:   public static final String LOGOUT = "LOGOUT";
  55:   public static final String SELECT = "SELECT";
  56:   public static final String EXAMINE = "EXAMINE";
  57:   public static final String CREATE = "CREATE";
  58:   public static final String DELETE = "DELETE";
  59:   public static final String RENAME = "RENAME";
  60:   public static final String SUBSCRIBE = "SUBSCRIBE";
  61:   public static final String UNSUBSCRIBE = "UNSUBSCRIBE";
  62:   public static final String LIST = "LIST";
  63:   public static final String LSUB = "LSUB";
  64:   public static final String STATUS = "STATUS";
  65:   public static final String APPEND = "APPEND";
  66:   public static final String CHECK = "CHECK";
  67:   public static final String CLOSE = "CLOSE";
  68:   public static final String EXPUNGE = "EXPUNGE";
  69:   public static final String SEARCH = "SEARCH";
  70:   public static final String FETCH = "FETCH";
  71:   public static final String STORE = "STORE";
  72:   public static final String COPY = "COPY";
  73:   public static final String UID = "UID";
  74:   public static final String STARTTLS = "STARTTLS";
  75:   public static final String NAMESPACE = "NAMESPACE";
  76:   public static final String SETACL = "SETACL";
  77:   public static final String DELETEACL = "DELETEACL";
  78:   public static final String GETACL = "GETACL";
  79:   public static final String LISTRIGHTS = "LISTRIGHTS";
  80:   public static final String MYRIGHTS = "MYRIGHTS";
  81:   public static final String SETQUOTA = "SETQUOTA";
  82:   public static final String GETQUOTA = "GETQUOTA";
  83:   public static final String GETQUOTAROOT = "GETQUOTAROOT";
  84: 
  85:   // Server responses
  86:   public static final String OK = "OK";
  87:   public static final String NO = "NO";
  88:   public static final String BAD = "BAD";
  89:   public static final String PREAUTH = "PREAUTH";
  90:   public static final String BYE = "BYE";
  91: 
  92:   // Response codes
  93:   public static final String ALERT = "ALERT";
  94:   public static final String NEWNAME = "NEWNAME";
  95:   public static final String PARSE = "PARSE";
  96:   public static final String PERMANENTFLAGS = "PERMANENTFLAGS";
  97:   public static final String READ_ONLY = "READ-ONLY";
  98:   public static final String READ_WRITE = "READ-WRITE";
  99:   public static final String TRYCREATE = "TRYCREATE";
 100:   public static final String UIDVALIDITY = "UIDVALIDITY";
 101:   public static final String UNSEEN = "UNSEEN";
 102:   public static final String ACL = "ACL";
 103:   public static final String QUOTA = "QUOTA";
 104:   public static final String QUOTAROOT = "QUOTAROOT";
 105: 
 106:   // Select responses
 107:   public static final String FLAGS = "FLAGS";
 108:   public static final String EXISTS = "EXISTS";
 109:   public static final String RECENT = "RECENT";
 110:   public static final String FETCH_FLAGS = "FETCH FLAGS";
 111: 
 112:   // Status items
 113:   public static final String MESSAGES = "MESSAGES";
 114:   public static final String UIDNEXT = "UIDNEXT";
 115: 
 116:   // List responses
 117:   public static final String LIST_NOINFERIORS = "\\Noinferiors";
 118:   public static final String LIST_NOSELECT = "\\Noselect";
 119:   public static final String LIST_MARKED = "\\Marked";
 120:   public static final String LIST_UNMARKED = "\\Unmarked";
 121: 
 122:   // Flags
 123:   public static final String FLAG_SEEN = "\\Seen";
 124:   public static final String FLAG_ANSWERED = "\\Answered";
 125:   public static final String FLAG_FLAGGED = "\\Flagged";
 126:   public static final String FLAG_DELETED = "\\Deleted";
 127:   public static final String FLAG_DRAFT = "\\Draft";
 128:   public static final String FLAG_RECENT = "\\Recent";
 129: 
 130:   // Fetch data items
 131:   public static final String BODY = "BODY";
 132:   public static final String BODY_PEEK = "BODY.PEEK";
 133:   public static final String HEADER = "HEADER";
 134:   public static final String HEADER_FIELDS = "HEADER.FIELDS";
 135:   public static final String HEADER_FIELDS_NOT = "HEADER.FIELDS.NOT";
 136:   public static final String BODYSTRUCTURE = "BODYSTRUCTURE";
 137:   public static final String ENVELOPE = "ENVELOPE";
 138:   public static final String INTERNALDATE = "INTERNALDATE";
 139:   public static final String RFC822 = "RFC822";
 140:   public static final String RFC822_HEADER = "RFC822.HEADER";
 141:   public static final String RFC822_SIZE = "RFC822.SIZE";
 142:   public static final String RFC822_TEXT = "RFC822.TEXT";
 143: 
 144:   // Search criteria
 145:   public static final String SEARCH_ALL = "ALL";
 146:   public static final String SEARCH_ANSWERED = "ANSWERED";
 147:   public static final String SEARCH_BCC = "BCC";
 148:   public static final String SEARCH_BEFORE = "BEFORE";
 149:   public static final String SEARCH_BODY = "BODY";
 150:   public static final String SEARCH_CC = "CC";
 151:   public static final String SEARCH_DELETED = "DELETED";
 152:   public static final String SEARCH_DRAFT = "DRAFT";
 153:   public static final String SEARCH_FLAGGED = "FLAGGED";
 154:   public static final String SEARCH_FROM = "FROM";
 155:   public static final String SEARCH_HEADER = "HEADER";
 156:   public static final String SEARCH_KEYWORD = "KEYWORD";
 157:   public static final String SEARCH_LARGER = "LARGER";
 158:   public static final String SEARCH_NEW = "NEW";
 159:   public static final String SEARCH_NOT = "NOT";
 160:   public static final String SEARCH_OLD = "OLD";
 161:   public static final String SEARCH_ON = "ON";
 162:   public static final String SEARCH_OR = "OR";
 163:   public static final String SEARCH_RECENT = "RECENT";
 164:   public static final String SEARCH_SEEN = "SEEN";
 165:   public static final String SEARCH_SENTBEFORE = "SENTBEFORE";
 166:   public static final String SEARCH_SENTON = "SENTON";
 167:   public static final String SEARCH_SENTSINCE = "SENTSINCE";
 168:   public static final String SEARCH_SINCE = "SINCE";
 169:   public static final String SEARCH_SMALLER = "SMALLER";
 170:   public static final String SEARCH_SUBJECT = "SUBJECT";
 171:   public static final String SEARCH_TEXT = "TEXT";
 172:   public static final String SEARCH_TO = "TO";
 173:   public static final String SEARCH_UID = "UID";
 174:   public static final String SEARCH_UNANSWERED = "UNANSWERED";
 175:   public static final String SEARCH_UNDELETED = "UNDELETED";
 176:   public static final String SEARCH_UNDRAFT = "UNDRAFT";
 177:   public static final String SEARCH_UNFLAGGED = "UNFLAGGED";
 178:   public static final String SEARCH_UNKEYWORD = "UNKEYWORD";
 179:   public static final String SEARCH_UNSEEN = "UNSEEN";
 180: 
 181:   // NIL
 182:   public static final String NIL = "NIL";
 183: 
 184:   // ACL rights
 185:   public static final int RIGHTS_LOOKUP = 0x0001;
 186:   public static final int RIGHTS_READ = 0x0002;
 187:   public static final int RIGHTS_SEEN = 0x0004;
 188:   public static final int RIGHTS_WRITE = 0x0008;
 189:   public static final int RIGHTS_INSERT = 0x0010;
 190:   public static final int RIGHTS_POST = 0x0020;
 191:   public static final int RIGHTS_CREATE = 0x0040;
 192:   public static final int RIGHTS_DELETE = 0x0080;
 193:   public static final int RIGHTS_ADMIN = 0x0100;
 194: 
 195:   // Quota limits
 196:   public static final String STORAGE = "STORAGE";
 197: 
 198:   // Authentication mechanisms
 199:   public static final String KERBEROS_V4 = "KERBEROS_V4";
 200:   public static final String GSSAPI = "GSSAPI";
 201:   public static final String SKEY = "SKEY";
 202:   public static final String CRAM_MD5 = "CRAM-MD5";
 203:   public static final String LOGINDISABLED = "LOGINDISABLED";
 204: 
 205: }