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"
22 # NOTE: All other DI_* field offsets seem to match the MI_* field offsets
25 versionWarned
= False # If the Javascript version is different have we
29 js_version
= '44f09303f2d4f76f'
33 D_DEFAULTSEARCH_SUMMARY
= "ds"
34 D_THREADLIST_SUMMARY
= "ts"
35 D_THREADLIST_END
= "te"
45 D_CATEGORIES_COUNT_ALL
= "cta"
46 D_ACTION_RESULT
= "ar"
47 D_SENDMAIL_RESULT
= "sr"
49 D_PREFERENCES_PANEL
= "pp"
55 D_LOADED_SUCCESS
= "ld"
86 CS_PREVNEXTTHREADIDS
= 5
97 MI_AUTHORFIRSTNAME
= 6 # ? -- Name supplied by rj
98 MI_AUTHOREMAIL
= 6 + 1
99 MI_MINIHDRHTML
= 7 + 1
107 MI_SNIPPETHTML
= 15 + 1
108 MI_ATTACHINFO
= 16 + 1
109 MI_KNOWNAUTHOR
= 17 + 1
110 MI_PHISHWARNING
= 18 + 1
123 CMD_SEARCH
= "SEARCH"
124 ACTION_TOKEN_COOKIE
= "GMAIL_AT"
127 U_THREADLIST_VIEW
= "tl"
128 U_CONVERSATION_VIEW
= "cv"
129 U_COMPOSE_VIEW
= "cm"
131 U_PREFERENCES_VIEW
= "pr"
132 U_JSREPORT_VIEW
= "jr"
134 U_SENDMAIL_VIEW
= "sm"
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"
145 U_INBOX_SEARCH
= "inbox"
146 U_STARRED_SEARCH
= "starred"
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"
158 U_AS_SUBJECT
= "as_subj"
159 U_AS_SUBSET
= "as_subset"
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_"
177 U_PREV_THREAD
= "prev"
178 U_NEXT_THREAD
= "next"
179 U_DRAFT_MSG
= "draft"
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"
211 U_COMPOSE_MODE
= "cmode"
212 U_COMPOSE_SUBJECT
= "su"
215 U_COMPOSE_BCC
= "bcc"
216 U_COMPOSE_BODY
= "body"
217 U_PRINT_THREAD
= "pth"
222 COMPOSE_VIEW
= "comp"
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
]