|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CIMAPSESSIONCONSTS_H__ |
|
17 #define __CIMAPSESSIONCONSTS_H__ |
|
18 |
|
19 /** |
|
20 Completion code indicating that the IMAP server returned a tagged NO response |
|
21 */ |
|
22 const TInt KErrImapNo = 1; |
|
23 /** |
|
24 Completion code indicating that the IMAP server returned a tagged BAD response |
|
25 */ |
|
26 const TInt KErrImapBad = 2; |
|
27 /** |
|
28 Completion code indicating that one of the streams have closed |
|
29 */ |
|
30 const TInt KErrImapClosed = 3; |
|
31 /** |
|
32 Completion code indicating that an attempt to flush a cancelled command has timed out |
|
33 */ |
|
34 const TInt KErrImapFlushTimeout = 4; |
|
35 /** |
|
36 Completion code indicating that corrupt data was enountered during parsing of IMAP server data |
|
37 */ |
|
38 const TInt KErrImapCorrupt = 5; |
|
39 /** |
|
40 Completion code returned by the session manager indicating that an error has occured while connecting a session. |
|
41 */ |
|
42 const TInt KErrImapConnectError = 6; |
|
43 |
|
44 _LIT8(KImapTxtCrlf, "\r\n"); |
|
45 _LIT8(KImapTxtNil, "NIL"); |
|
46 _LIT8(KImapTxtOpenBracket, "("); |
|
47 _LIT8(KImapTxtCloseBracket, ")"); |
|
48 _LIT8(KImapTxtDoubleQuote, "\""); |
|
49 _LIT8(KImapTxtEscape, "\\"); |
|
50 _LIT8(KImapTxtEmptyStringAsDoubleQuotePair, "\"\""); // "" |
|
51 |
|
52 // Tags and Response Codes |
|
53 _LIT8(KImapTxtOk, "OK"); |
|
54 _LIT8(KImapTxtNo, "NO"); |
|
55 _LIT8(KImapTxtBad, "BAD"); |
|
56 _LIT8(KImapTxtContinuation, "+"); |
|
57 _LIT8(KImapTxtUntagged, "*"); |
|
58 _LIT8(KImapTxtBye, "BYE"); |
|
59 _LIT8(KImapTxtPreAuth, "PREAUTH"); |
|
60 |
|
61 // Commands (e.g. for checking tagged responses) |
|
62 _LIT8(KImapTxtCheck, "CHECK"); |
|
63 _LIT8(KImapTxtExpunge, "EXPUNGE"); |
|
64 _LIT8(KImapTxtSearch, "SEARCH"); |
|
65 _LIT8(KImapTxtClose, "CLOSE"); |
|
66 _LIT8(KImapTxtAppend, "APPEND"); |
|
67 _LIT8(KImapTxtLSub, "LSUB"); |
|
68 _LIT8(KImapTxtList, "LIST"); |
|
69 _LIT8(KImapTxtRename, "RENAME"); |
|
70 _LIT8(KImapTxtDelete, "DELETE"); |
|
71 _LIT8(KImapTxtCreate, "CREATE"); |
|
72 _LIT8(KImapTxtNoop, "NOOP"); |
|
73 _LIT8(KTxtImapCapability, "CAPABILITY"); |
|
74 _LIT8(KImapTxtStatus, "STATUS"); |
|
75 |
|
76 // Unsolicited Responses |
|
77 // Expunge already defined - see above |
|
78 _LIT8(KImapTxtExists, "EXISTS"); |
|
79 _LIT8(KImapTxtRecent, "RECENT"); |
|
80 |
|
81 // Imap Capabilities |
|
82 _LIT8(KImapTxtImapVersion, "IMAP4rev1"); |
|
83 _LIT8(KImapTxtStartTls, "STARTTLS"); |
|
84 _LIT8(KImapTxtLoginDisabled, "LOGINDISABLED"); |
|
85 _LIT8(KImapTxtIdle, "IDLE"); |
|
86 |
|
87 // Imap Capabilities: Authentication types that we're interested in |
|
88 _LIT8(KImapTxtAuthPlain, "AUTH=PLAIN"); |
|
89 |
|
90 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT) |
|
91 _LIT8(KImapTxtAuthCRamMd5, "AUTH=CRAM-MD5"); |
|
92 _LIT8(KImapTxtAuthLogin, "AUTH=LOGIN"); |
|
93 _LIT8(KImapTxtBinaryCap, "BINARY"); |
|
94 #endif |
|
95 |
|
96 // Flags for FLAGS and FETCH FLAGS responses |
|
97 _LIT8(KImapTxtFlagSeen, "\\Seen"); |
|
98 _LIT8(KImapTxtFlagAnswered, "\\Answered"); |
|
99 _LIT8(KImapTxtFlagDeleted, "\\Deleted"); |
|
100 _LIT8(KImapTxtFlagFlagged, "\\Flagged"); |
|
101 _LIT8(KImapTxtFlagDraft, "\\Draft"); |
|
102 _LIT8(KImapTxtFlagRecent, "\\Recent"); // This flag only appears in FETCH FLAGS responses, not FLAGS |
|
103 |
|
104 // Select Flags |
|
105 _LIT8(KImapTxtUidNext,"UIDNEXT"); |
|
106 _LIT8(KImapTxtUnseen,"UNSEEN"); |
|
107 _LIT8(KImapTxtUidValidity,"UIDVALIDITY"); |
|
108 _LIT8(KImapTxtMessages, "MESSAGES"); |
|
109 |
|
110 // List Item Flags |
|
111 _LIT8(KImapTxtNoInferiors, "\\Noinferiors"); |
|
112 _LIT8(KImapTxtNoSelect, "\\Noselect"); |
|
113 _LIT8(KImapTxtMarked, "\\Marked"); |
|
114 _LIT8(KImapTxtUnmarked, "\\Unmarked"); |
|
115 |
|
116 // Bodystructure Types |
|
117 _LIT8(KImapTxtMultipart, "MULTIPART"); |
|
118 _LIT8(KImapTxtText, "TEXT"); |
|
119 _LIT8(KImapTxtMessage, "MESSAGE"); |
|
120 _LIT8(KImapTxtRfc822, "RFC822"); |
|
121 |
|
122 // FETCH Data Items |
|
123 _LIT8(KImapTxtFetch, "FETCH"); |
|
124 _LIT8(KImapTxtUid, "UID"); |
|
125 _LIT8(KImapTxtFlags, "FLAGS"); |
|
126 _LIT8(KImapTxtBodyStructure, "BODYSTRUCTURE"); |
|
127 _LIT8(KImapTxtBodyHeaderFields, "BODY[HEADER.FIELDS"); |
|
128 _LIT8(KImapTxtBody, "BODY["); |
|
129 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT) |
|
130 _LIT8(KImapTxtBinary, "BINARY["); |
|
131 #endif |
|
132 _LIT8(KImapTxtMime, ".MIME]"); |
|
133 |
|
134 // Header Fields |
|
135 _LIT8(KImapTxtFrom, "From"); |
|
136 _LIT8(KImapTxtReplyTo, "Reply-to"); |
|
137 _LIT8(KImapTxtTo, "To"); |
|
138 _LIT8(KImapTxtCc, "Cc"); |
|
139 _LIT8(KImapTxtBcc, "Bcc"); |
|
140 _LIT8(KImapTxtSubject, "Subject"); |
|
141 _LIT8(KImapTxtDate, "Date"); |
|
142 _LIT8(KImapTxtReceived, "Received"); |
|
143 _LIT8(KImapTxtMessageId, "Message-ID"); |
|
144 _LIT8(KImapTxtXMailer, "X-Mailer"); |
|
145 _LIT8(KImapTxtPriority, "Priority"); |
|
146 _LIT8(KImapTxtXPriority, "X-Priority"); |
|
147 _LIT8(KImapTxtXMSMailPriority, "X-MSMail-Priority"); |
|
148 _LIT8(KImapTxtPrecedence, "Precedence"); |
|
149 _LIT8(KImapTxtImportance, "Importance"); |
|
150 _LIT8(KImapTxtReturnReceiptTo, "Return-Receipt-To"); |
|
151 _LIT8(KImapTxtXReturnReceiptTo, "X-Return-Receipt-To"); |
|
152 _LIT8(KImapTxtDispositionNotificationTo, "Disposition-Notification-To"); |
|
153 _LIT8(KImapTxtDispositionNotificationOptions, "Disposition-Notification-Options"); |
|
154 |
|
155 // MIME header fields |
|
156 _LIT8(KImapTxtContentBase, "Content-Base"); |
|
157 _LIT8(KImapTxtContentLocation, "Content-Location"); |
|
158 |
|
159 #endif // __CIMAPSESSIONCONSTS_H__ |