working on optimizations
[QuestHelper.git] / Development / lgconstants.py
blobb4ab112949d6277aa1ebaf30e2407a192a93e05d
2 # Generated file -- DO NOT EDIT
4 # Note: This file is now edited! 2005-04-25
6 # constants.py -- Useful constants extracted from Gmail Javascript code
8 # Source version: 44f09303f2d4f76f
10 # Generated: 2004-08-10 13:08 UTC
14 URL_LOGIN = "https://www.google.com/accounts/ServiceLoginBoxAuth"
15 URL_GMAIL = "https://mail.google.com/mail/"
18 # Constants with names not from the Gmail Javascript:
19 U_SAVEDRAFT_VIEW = "sd"
21 D_DRAFTINFO = "di"
22 # NOTE: All other DI_* field offsets seem to match the MI_* field offsets
23 DI_BODY = 19
25 versionWarned = False # If the Javascript version is different have we
26 # warned about it?
29 js_version = '44f09303f2d4f76f'
31 D_VERSION = "v"
32 D_QUOTA = "qu"
33 D_DEFAULTSEARCH_SUMMARY = "ds"
34 D_THREADLIST_SUMMARY = "ts"
35 D_THREADLIST_END = "te"
36 D_THREAD = "t"
37 D_CONV_SUMMARY = "cs"
38 D_CONV_END = "ce"
39 D_MSGINFO = "mi"
40 D_MSGBODY = "mb"
41 D_MSGATT = "ma"
42 D_COMPOSE = "c"
43 D_CONTACT = "co"
44 D_CATEGORIES = "ct"
45 D_CATEGORIES_COUNT_ALL = "cta"
46 D_ACTION_RESULT = "ar"
47 D_SENDMAIL_RESULT = "sr"
48 D_PREFERENCES = "p"
49 D_PREFERENCES_PANEL = "pp"
50 D_FILTERS = "fi"
51 D_GAIA_NAME = "gn"
52 D_INVITE_STATUS = "i"
53 D_END_PAGE = "e"
54 D_LOADING = "l"
55 D_LOADED_SUCCESS = "ld"
56 D_LOADED_ERROR = "le"
57 D_QUICKLOADED = "ql"
58 QU_SPACEUSED = 0
59 QU_QUOTA = 1
60 QU_PERCENT = 2
61 QU_COLOR = 3
62 TS_START = 0
63 TS_NUM = 1
64 TS_TOTAL = 2
65 TS_ESTIMATES = 3
66 TS_TITLE = 4
67 TS_TIMESTAMP = 5 + 1
68 TS_TOTAL_MSGS = 6 + 1
69 T_THREADID = 0
70 T_UNREAD = 1
71 T_STAR = 2
72 T_DATE_HTML = 3
73 T_AUTHORS_HTML = 4
74 T_FLAGS = 5
75 T_SUBJECT_HTML = 6
76 T_SNIPPET_HTML = 7
77 T_CATEGORIES = 8
78 T_ATTACH_HTML = 9
79 T_MATCHING_MSGID = 10
80 T_EXTRA_SNIPPET = 11
81 CS_THREADID = 0
82 CS_SUBJECT = 1
83 CS_TITLE_HTML = 2
84 CS_SUMMARY_HTML = 3
85 CS_CATEGORIES = 4
86 CS_PREVNEXTTHREADIDS = 5
87 CS_THREAD_UPDATED = 6
88 CS_NUM_MSGS = 7
89 CS_ADKEY = 8
90 CS_MATCHING_MSGID = 9
91 MI_FLAGS = 0
92 MI_NUM = 1
93 MI_MSGID = 2
94 MI_STAR = 3
95 MI_REFMSG = 4
96 MI_AUTHORNAME = 5
97 MI_AUTHORFIRSTNAME = 6 # ? -- Name supplied by rj
98 MI_AUTHOREMAIL = 6 + 1
99 MI_MINIHDRHTML = 7 + 1
100 MI_DATEHTML = 8 + 1
101 MI_TO = 9 + 1
102 MI_CC = 10 + 1
103 MI_BCC = 11 + 1
104 MI_REPLYTO = 12 + 1
105 MI_DATE = 13 + 1
106 MI_SUBJECT = 14 + 1
107 MI_SNIPPETHTML = 15 + 1
108 MI_ATTACHINFO = 16 + 1
109 MI_KNOWNAUTHOR = 17 + 1
110 MI_PHISHWARNING = 18 + 1
111 A_ID = 0
112 A_FILENAME = 1
113 A_MIMETYPE = 2
114 A_FILESIZE = 3
115 CT_NAME = 0
116 CT_COUNT = 1
117 AR_SUCCESS = 0
118 AR_MSG = 1
119 SM_COMPOSEID = 0
120 SM_SUCCESS = 1
121 SM_MSG = 2
122 SM_NEWTHREADID = 3
123 CMD_SEARCH = "SEARCH"
124 ACTION_TOKEN_COOKIE = "GMAIL_AT"
125 U_VIEW = "view"
126 U_PAGE_VIEW = "page"
127 U_THREADLIST_VIEW = "tl"
128 U_CONVERSATION_VIEW = "cv"
129 U_COMPOSE_VIEW = "cm"
130 U_PRINT_VIEW = "pt"
131 U_PREFERENCES_VIEW = "pr"
132 U_JSREPORT_VIEW = "jr"
133 U_UPDATE_VIEW = "up"
134 U_SENDMAIL_VIEW = "sm"
135 U_AD_VIEW = "ad"
136 U_REPORT_BAD_RELATED_INFO_VIEW = "rbri"
137 U_ADDRESS_VIEW = "address"
138 U_ADDRESS_IMPORT_VIEW = "ai"
139 U_SPELLCHECK_VIEW = "sc"
140 U_INVITE_VIEW = "invite"
141 U_ORIGINAL_MESSAGE_VIEW = "om"
142 U_ATTACHMENT_VIEW = "att"
143 U_DEBUG_ADS_RESPONSE_VIEW = "da"
144 U_SEARCH = "search"
145 U_INBOX_SEARCH = "inbox"
146 U_STARRED_SEARCH = "starred"
147 U_ALL_SEARCH = "all"
148 U_DRAFTS_SEARCH = "drafts"
149 U_SENT_SEARCH = "sent"
150 U_SPAM_SEARCH = "spam"
151 U_TRASH_SEARCH = "trash"
152 U_QUERY_SEARCH = "query"
153 U_ADVANCED_SEARCH = "adv"
154 U_CREATEFILTER_SEARCH = "cf"
155 U_CATEGORY_SEARCH = "cat"
156 U_AS_FROM = "as_from"
157 U_AS_TO = "as_to"
158 U_AS_SUBJECT = "as_subj"
159 U_AS_SUBSET = "as_subset"
160 U_AS_HAS = "as_has"
161 U_AS_HASNOT = "as_hasnot"
162 U_AS_ATTACH = "as_attach"
163 U_AS_WITHIN = "as_within"
164 U_AS_DATE = "as_date"
165 U_AS_SUBSET_ALL = "all"
166 U_AS_SUBSET_INBOX = "inbox"
167 U_AS_SUBSET_STARRED = "starred"
168 U_AS_SUBSET_SENT = "sent"
169 U_AS_SUBSET_DRAFTS = "drafts"
170 U_AS_SUBSET_SPAM = "spam"
171 U_AS_SUBSET_TRASH = "trash"
172 U_AS_SUBSET_ALLSPAMTRASH = "ast"
173 U_AS_SUBSET_READ = "read"
174 U_AS_SUBSET_UNREAD = "unread"
175 U_AS_SUBSET_CATEGORY_PREFIX = "cat_"
176 U_THREAD = "th"
177 U_PREV_THREAD = "prev"
178 U_NEXT_THREAD = "next"
179 U_DRAFT_MSG = "draft"
180 U_START = "start"
181 U_ACTION = "act"
182 U_ACTION_TOKEN = "at"
183 U_INBOX_ACTION = "ib"
184 U_MARKREAD_ACTION = "rd"
185 U_MARKUNREAD_ACTION = "ur"
186 U_MARKSPAM_ACTION = "sp"
187 U_UNMARKSPAM_ACTION = "us"
188 U_MARKTRASH_ACTION = "tr"
189 U_ADDCATEGORY_ACTION = "ac_"
190 U_REMOVECATEGORY_ACTION = "rc_"
191 U_ADDSTAR_ACTION = "st"
192 U_REMOVESTAR_ACTION = "xst"
193 U_ADDSENDERTOCONTACTS_ACTION = "astc"
194 U_DELETEMESSAGE_ACTION = "dm"
195 U_DELETE_ACTION = "dl"
196 U_EMPTYSPAM_ACTION = "es_"
197 U_EMPTYTRASH_ACTION = "et_"
198 U_SAVEPREFS_ACTION = "prefs"
199 U_ADDRESS_ACTION = "a"
200 U_CREATECATEGORY_ACTION = "cc_"
201 U_DELETECATEGORY_ACTION = "dc_"
202 U_RENAMECATEGORY_ACTION = "nc_"
203 U_CREATEFILTER_ACTION = "cf"
204 U_REPLACEFILTER_ACTION = "rf"
205 U_DELETEFILTER_ACTION = "df_"
206 U_ACTION_THREAD = "t"
207 U_ACTION_MESSAGE = "m"
208 U_ACTION_PREF_PREFIX = "p_"
209 U_REFERENCED_MSG = "rm"
210 U_COMPOSEID = "cmid"
211 U_COMPOSE_MODE = "cmode"
212 U_COMPOSE_SUBJECT = "su"
213 U_COMPOSE_TO = "to"
214 U_COMPOSE_CC = "cc"
215 U_COMPOSE_BCC = "bcc"
216 U_COMPOSE_BODY = "body"
217 U_PRINT_THREAD = "pth"
218 CONV_VIEW = "conv"
219 TLIST_VIEW = "tlist"
220 PREFS_VIEW = "prefs"
221 HIST_VIEW = "hist"
222 COMPOSE_VIEW = "comp"
223 HIDDEN_ACTION = 0
224 USER_ACTION = 1
225 BACKSPACE_ACTION = 2
227 # TODO: Get these on the fly?
228 STANDARD_FOLDERS = [U_INBOX_SEARCH, U_STARRED_SEARCH,
229 U_ALL_SEARCH, U_DRAFTS_SEARCH,
230 U_SENT_SEARCH, U_SPAM_SEARCH]