home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / mozilla-thunderbird / chrome / offline.jar < prev    next >
PKZip Archive  |  2007-04-03  |  10.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: PKZip Archive (archive/zip).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert PKZip Archive (archive/zip) magic Supported
66% dexvert JAR Archive (archive/jar) ext Supported
100% file Zip archive data, made by v2.3 UNIX, extract using at least v1.0, last modified, last modified Sun, Jun 22 2005 18:16:28, uncompressed size 2115, method=store default
99% file Zip archive, with extra data prepended default
98% file data default
100% TrID ZIP compressed archive default
100% dexmagic PrintFox/Pagefox WEAK default
100% siegfried x-fmt/263 ZIP Format default
100% lsar Zip default
100% gt2 ZIP Archiv gefunden (Auflistung ist deaktiviert) default
100% detectItEasy Archive: Zip(1.0)[100.0%,2 files] default
100% binwalkID Zip archive data, at least v1.0 to extract, compressed size: 2115, uncompressed size: 2115, name: content/messenger-offline/msgOfflineOverlay.xul default
100% xdgMime application/zip default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 4b 03 04 0a 00 00 00 | 00 00 0e 92 d6 32 88 a9 |PK......|.....2..|
|00000010| d4 0d 43 08 00 00 43 08 | 00 00 2f 00 00 00 63 6f |..C...C.|../...co|
|00000020| 6e 74 65 6e 74 2f 6d 65 | 73 73 65 6e 67 65 72 2d |ntent/me|ssenger-|
|00000030| 6f 66 66 6c 69 6e 65 2f | 6d 73 67 4f 66 66 6c 69 |offline/|msgOffli|
|00000040| 6e 65 4f 76 65 72 6c 61 | 79 2e 78 75 6c 3c 3f 78 |neOverla|y.xul<?x|
|00000050| 6d 6c 20 76 65 72 73 69 | 6f 6e 3d 22 31 2e 30 22 |ml versi|on="1.0"|
|00000060| 3f 3e 20 0a 0a 0a 3c 21 | 44 4f 43 54 59 50 45 20 |?> ...<!|DOCTYPE |
|00000070| 6f 76 65 72 6c 61 79 20 | 53 59 53 54 45 4d 20 22 |overlay |SYSTEM "|
|00000080| 63 68 72 6f 6d 65 3a 2f | 2f 6d 65 73 73 65 6e 67 |chrome:/|/messeng|
|00000090| 65 72 2d 6f 66 66 6c 69 | 6e 65 2f 6c 6f 63 61 6c |er-offli|ne/local|
|000000a0| 65 2f 6f 66 66 6c 69 6e | 65 2e 64 74 64 22 3e 0a |e/offlin|e.dtd">.|
|000000b0| 0a 3c 6f 76 65 72 6c 61 | 79 20 78 6d 6c 6e 73 3d |.<overla|y xmlns=|
|000000c0| 22 68 74 74 70 3a 2f 2f | 77 77 77 2e 6d 6f 7a 69 |"http://|www.mozi|
|000000d0| 6c 6c 61 2e 6f 72 67 2f | 6b 65 79 6d 61 73 74 65 |lla.org/|keymaste|
|000000e0| 72 2f 67 61 74 65 6b 65 | 65 70 65 72 2f 74 68 65 |r/gateke|eper/the|
|000000f0| 72 65 2e 69 73 2e 6f 6e | 6c 79 2e 78 75 6c 22 3e |re.is.on|ly.xul">|
|00000100| 0a 0a 20 20 3c 73 63 72 | 69 70 74 20 6c 61 6e 67 |.. <scr|ipt lang|
|00000110| 75 61 67 65 3d 22 4a 61 | 76 61 53 63 72 69 70 74 |uage="Ja|vaScript|
|00000120| 22 20 73 72 63 3d 22 63 | 68 72 6f 6d 65 3a 2f 2f |" src="c|hrome://|
|00000130| 6d 65 73 73 65 6e 67 65 | 72 2d 6f 66 66 6c 69 6e |messenge|r-offlin|
|00000140| 65 2f 63 6f 6e 74 65 6e | 74 2f 6d 61 69 6c 2d 6f |e/conten|t/mail-o|
|00000150| 66 66 6c 69 6e 65 2e 6a | 73 22 2f 3e 0a 0a 20 20 |ffline.j|s"/>.. |
|00000160| 3c 73 74 72 69 6e 67 62 | 75 6e 64 6c 65 73 65 74 |<stringb|undleset|
|00000170| 20 69 64 3d 22 73 74 72 | 69 6e 67 62 75 6e 64 6c | id="str|ingbundl|
|00000180| 65 73 65 74 22 3e 0a 20 | 20 20 20 3c 73 74 72 69 |eset">. | <stri|
|00000190| 6e 67 62 75 6e 64 6c 65 | 20 69 64 3d 22 62 75 6e |ngbundle| id="bun|
|000001a0| 64 6c 65 5f 6f 66 66 6c | 69 6e 65 50 72 6f 6d 70 |dle_offl|inePromp|
|000001b0| 74 73 22 20 73 72 63 3d | 22 63 68 72 6f 6d 65 3a |ts" src=|"chrome:|
|000001c0| 2f 2f 6d 65 73 73 65 6e | 67 65 72 2d 6f 66 66 6c |//messen|ger-offl|
|000001d0| 69 6e 65 2f 6c 6f 63 61 | 6c 65 2f 6f 66 66 6c 69 |ine/loca|le/offli|
|000001e0| 6e 65 2e 70 72 6f 70 65 | 72 74 69 65 73 22 2f 3e |ne.prope|rties"/>|
|000001f0| 0a 20 20 3c 2f 73 74 72 | 69 6e 67 62 75 6e 64 6c |. </str|ingbundl|
|00000200| 65 73 65 74 3e 0a 20 20 | 0a 20 20 3c 68 62 6f 78 |eset>. |. <hbox|
|00000210| 20 69 64 3d 22 73 74 61 | 74 75 73 54 65 78 74 42 | id="sta|tusTextB|
|00000220| 6f 78 22 3e 0a 20 20 20 | 20 3c 73 74 61 74 75 73 |ox">. | <status|
|00000230| 62 61 72 70 61 6e 65 6c | 20 69 6e 73 65 72 74 62 |barpanel| insertb|
|00000240| 65 66 6f 72 65 3d 22 73 | 74 61 74 75 73 54 65 78 |efore="s|tatusTex|
|00000250| 74 22 20 63 68 65 63 6b | 66 75 6e 63 3d 22 4d 61 |t" check|func="Ma|
|00000260| 69 6c 43 68 65 63 6b 42 | 65 66 6f 72 65 4f 66 66 |ilCheckB|eforeOff|
|00000270| 6c 69 6e 65 43 68 61 6e | 67 65 28 29 22 20 69 64 |lineChan|ge()" id|
|00000280| 3d 22 6f 66 66 6c 69 6e | 65 2d 73 74 61 74 75 73 |="offlin|e-status|
|00000290| 22 20 63 6c 61 73 73 3d | 22 73 74 61 74 75 73 62 |" class=|"statusb|
|000002a0| 61 72 70 61 6e 65 6c 2d | 69 63 6f 6e 69 63 22 2f |arpanel-|iconic"/|
|000002b0| 3e 20 0a 20 20 3c 2f 68 | 62 6f 78 3e 0a 0a 20 20 |> . </h|box>.. |
|000002c0| 3c 63 6f 6d 6d 61 6e 64 | 73 65 74 20 69 64 3d 22 |<command|set id="|
|000002d0| 6d 61 69 6c 46 69 6c 65 | 4d 65 6e 75 49 74 65 6d |mailFile|MenuItem|
|000002e0| 73 22 3e 0a 20 20 20 20 | 3c 63 6f 6d 6d 61 6e 64 |s">. |<command|
|000002f0| 20 69 64 3d 22 63 6d 64 | 5f 73 79 6e 63 68 72 6f | id="cmd|_synchro|
|00000300| 6e 69 7a 65 4f 66 66 6c | 69 6e 65 22 20 6f 6e 63 |nizeOffl|ine" onc|
|00000310| 6f 6d 6d 61 6e 64 3d 22 | 67 6f 44 6f 43 6f 6d 6d |ommand="|goDoComm|
|00000320| 61 6e 64 28 27 63 6d 64 | 5f 73 79 6e 63 68 72 6f |and('cmd|_synchro|
|00000330| 6e 69 7a 65 4f 66 66 6c | 69 6e 65 27 29 22 20 64 |nizeOffl|ine')" d|
|00000340| 69 73 61 62 6c 65 64 3d | 22 74 72 75 65 22 2f 3e |isabled=|"true"/>|
|00000350| 0a 20 20 20 20 3c 63 6f | 6d 6d 61 6e 64 20 69 64 |. <co|mmand id|
|00000360| 3d 22 63 6d 64 5f 64 6f | 77 6e 6c 6f 61 64 46 6c |="cmd_do|wnloadFl|
|00000370| 61 67 67 65 64 22 20 6f | 6e 63 6f 6d 6d 61 6e 64 |agged" o|ncommand|
|00000380| 3d 22 67 6f 44 6f 43 6f | 6d 6d 61 6e 64 28 27 63 |="goDoCo|mmand('c|
|00000390| 6d 64 5f 64 6f 77 6e 6c | 6f 61 64 46 6c 61 67 67 |md_downl|oadFlagg|
|000003a0| 65 64 27 29 22 20 64 69 | 73 61 62 6c 65 64 3d 22 |ed')" di|sabled="|
|000003b0| 74 72 75 65 22 2f 3e 0a | 20 20 20 20 3c 63 6f 6d |true"/>.| <com|
|000003c0| 6d 61 6e 64 20 69 64 3d | 22 63 6d 64 5f 64 6f 77 |mand id=|"cmd_dow|
|000003d0| 6e 6c 6f 61 64 53 65 6c | 65 63 74 65 64 22 20 6f |nloadSel|ected" o|
|000003e0| 6e 63 6f 6d 6d 61 6e 64 | 3d 22 67 6f 44 6f 43 6f |ncommand|="goDoCo|
|000003f0| 6d 6d 61 6e 64 28 27 63 | 6d 64 5f 64 6f 77 6e 6c |mmand('c|md_downl|
|00000400| 6f 61 64 53 65 6c 65 63 | 74 65 64 27 29 22 20 64 |oadSelec|ted')" d|
|00000410| 69 73 61 62 6c 65 64 3d | 22 74 72 75 65 22 2f 3e |isabled=|"true"/>|
|00000420| 0a 20 20 20 20 3c 63 6f | 6d 6d 61 6e 64 20 69 64 |. <co|mmand id|
|00000430| 3d 22 63 6d 64 5f 73 65 | 74 74 69 6e 67 73 4f 66 |="cmd_se|ttingsOf|
|00000440| 66 6c 69 6e 65 22 20 6f | 6e 63 6f 6d 6d 61 6e 64 |fline" o|ncommand|
|00000450| 3d 22 67 6f 44 6f 43 6f | 6d 6d 61 6e 64 28 27 63 |="goDoCo|mmand('c|
|00000460| 6d 64 5f 73 65 74 74 69 | 6e 67 73 4f 66 66 6c 69 |md_setti|ngsOffli|
|00000470| 6e 65 27 29 22 20 64 69 | 73 61 62 6c 65 64 3d 22 |ne')" di|sabled="|
|00000480| 74 72 75 65 22 2f 3e 0a | 20 20 3c 2f 63 6f 6d 6d |true"/>.| </comm|
|00000490| 61 6e 64 73 65 74 3e 0a | 0a 20 20 3c 6d 65 6e 75 |andset>.|. <menu|
|000004a0| 70 6f 70 75 70 20 69 64 | 3d 22 6d 65 6e 75 5f 46 |popup id|="menu_F|
|000004b0| 69 6c 65 50 6f 70 75 70 | 22 3e 0a 20 20 20 20 3c |ilePopup|">. <|
|000004c0| 6d 65 6e 75 20 69 64 3d | 22 6f 66 66 6c 69 6e 65 |menu id=|"offline|
|000004d0| 4d 65 6e 75 49 74 65 6d | 22 20 69 6e 73 65 72 74 |MenuItem|" insert|
|000004e0| 61 66 74 65 72 3d 22 74 | 72 61 73 68 4d 65 6e 75 |after="t|rashMenu|
|000004f0| 53 65 70 61 72 61 74 6f | 72 22 20 6c 61 62 65 6c |Separato|r" label|
|00000500| 3d 22 26 6f 66 66 6c 69 | 6e 65 4d 65 6e 75 2e 6c |="&offli|neMenu.l|
|00000510| 61 62 65 6c 3b 22 20 61 | 63 63 65 73 73 6b 65 79 |abel;" a|ccesskey|
|00000520| 3d 22 26 6f 66 66 6c 69 | 6e 65 4d 65 6e 75 2e 61 |="&offli|neMenu.a|
|00000530| 63 63 65 73 73 6b 65 79 | 3b 22 3e 0a 20 20 20 20 |ccesskey|;">. |
|00000540| 20 20 3c 6d 65 6e 75 70 | 6f 70 75 70 3e 0a 20 20 | <menup|opup>. |
|00000550| 20 20 20 20 20 20 3c 6d | 65 6e 75 69 74 65 6d 20 | <m|enuitem |
|00000560| 69 64 3d 22 6f 66 66 6c | 69 6e 65 47 6f 4f 66 66 |id="offl|ineGoOff|
|00000570| 6c 69 6e 65 43 6d 64 22 | 2f 3e 0a 20 20 20 20 20 |lineCmd"|/>. |
|00000580| 20 20 20 3c 6d 65 6e 75 | 73 65 70 61 72 61 74 6f | <menu|separato|
|00000590| 72 2f 3e 0a 20 20 20 20 | 20 20 20 20 3c 6d 65 6e |r/>. | <men|
|000005a0| 75 69 74 65 6d 20 6c 61 | 62 65 6c 3d 22 26 73 79 |uitem la|bel="&sy|
|000005b0| 6e 63 68 72 6f 6e 69 7a | 65 4f 66 66 6c 69 6e 65 |nchroniz|eOffline|
|000005c0| 43 6d 64 2e 6c 61 62 65 | 6c 3b 22 20 20 61 63 63 |Cmd.labe|l;" acc|
|000005d0| 65 73 73 6b 65 79 3d 22 | 26 73 79 6e 63 68 72 6f |esskey="|&synchro|
|000005e0| 6e 69 7a 65 4f 66 66 6c | 69 6e 65 43 6d 64 2e 61 |nizeOffl|ineCmd.a|
|000005f0| 63 63 65 73 73 6b 65 79 | 3b 22 20 6f 62 73 65 72 |ccesskey|;" obser|
|00000600| 76 65 73 3d 22 63 6d 64 | 5f 73 79 6e 63 68 72 6f |ves="cmd|_synchro|
|00000610| 6e 69 7a 65 4f 66 66 6c | 69 6e 65 22 2f 3e 0a 20 |nizeOffl|ine"/>. |
|00000620| 20 20 20 20 20 20 20 3c | 6d 65 6e 75 69 74 65 6d | <|menuitem|
|00000630| 20 6c 61 62 65 6c 3d 22 | 26 73 65 74 74 69 6e 67 | label="|&setting|
|00000640| 73 4f 66 66 6c 69 6e 65 | 43 6d 64 2e 6c 61 62 65 |sOffline|Cmd.labe|
|00000650| 6c 3b 22 20 20 20 20 20 | 61 63 63 65 73 73 6b 65 |l;" |accesske|
|00000660| 79 3d 22 26 73 65 74 74 | 69 6e 67 73 4f 66 66 6c |y="&sett|ingsOffl|
|00000670| 69 6e 65 43 6d 64 2e 61 | 63 63 65 73 73 6b 65 79 |ineCmd.a|ccesskey|
|00000680| 3b 22 20 20 20 20 6f 6e | 63 6f 6d 6d 61 6e 64 3d |;" on|command=|
|00000690| 22 6f 70 65 6e 4f 70 74 | 69 6f 6e 73 44 69 61 6c |"openOpt|ionsDial|
|000006a0| 6f 67 28 27 70 61 6e 65 | 41 64 76 61 6e 63 65 64 |og('pane|Advanced|
|000006b0| 27 2c 20 27 6f 66 66 6c | 69 6e 65 54 61 62 27 29 |', 'offl|ineTab')|
|000006c0| 3b 22 2f 3e 0a 20 20 20 | 20 20 20 20 20 3c 6d 65 |;"/>. | <me|
|000006d0| 6e 75 73 65 70 61 72 61 | 74 6f 72 2f 3e 0a 20 20 |nusepara|tor/>. |
|000006e0| 20 20 20 20 20 20 3c 6d | 65 6e 75 69 74 65 6d 20 | <m|enuitem |
|000006f0| 6c 61 62 65 6c 3d 22 26 | 64 6f 77 6e 6c 6f 61 64 |label="&|download|
|00000700| 46 6c 61 67 67 65 64 43 | 6d 64 2e 6c 61 62 65 6c |FlaggedC|md.label|
|00000710| 3b 22 20 20 20 20 20 61 | 63 63 65 73 73 6b 65 79 |;" a|ccesskey|
|00000720| 3d 22 26 64 6f 77 6e 6c | 6f 61 64 46 6c 61 67 67 |="&downl|oadFlagg|
|00000730| 65 64 43 6d 64 2e 61 63 | 63 65 73 73 6b 65 79 3b |edCmd.ac|cesskey;|
|00000740| 22 20 20 20 20 6f 62 73 | 65 72 76 65 73 3d 22 63 |" obs|erves="c|
|00000750| 6d 64 5f 64 6f 77 6e 6c | 6f 61 64 46 6c 61 67 67 |md_downl|oadFlagg|
|00000760| 65 64 22 2f 3e 0a 20 20 | 20 20 20 20 20 20 3c 6d |ed"/>. | <m|
|00000770| 65 6e 75 69 74 65 6d 20 | 6c 61 62 65 6c 3d 22 26 |enuitem |label="&|
|00000780| 64 6f 77 6e 6c 6f 61 64 | 53 65 6c 65 63 74 65 64 |download|Selected|
|00000790| 43 6d 64 2e 6c 61 62 65 | 6c 3b 22 20 20 20 20 61 |Cmd.labe|l;" a|
|000007a0| 63 63 65 73 73 6b 65 79 | 3d 22 26 64 6f 77 6e 6c |ccesskey|="&downl|
|000007b0| 6f 61 64 53 65 6c 65 63 | 74 65 64 43 6d 64 2e 61 |oadSelec|tedCmd.a|
|000007c0| 63 63 65 73 73 6b 65 79 | 3b 22 20 20 20 6f 62 73 |ccesskey|;" obs|
|000007d0| 65 72 76 65 73 3d 22 63 | 6d 64 5f 64 6f 77 6e 6c |erves="c|md_downl|
|000007e0| 6f 61 64 53 65 6c 65 63 | 74 65 64 22 2f 3e 0a 20 |oadSelec|ted"/>. |
|000007f0| 20 20 20 20 20 3c 2f 6d | 65 6e 75 70 6f 70 75 70 | </m|enupopup|
|00000800| 3e 0a 20 20 20 20 3c 2f | 6d 65 6e 75 3e 20 20 0a |>. </|menu> .|
|00000810| 20 20 3c 2f 6d 65 6e 75 | 70 6f 70 75 70 3e 0a 0a | </menu|popup>..|
|00000820| 20 20 3c 6d 65 6e 75 70 | 6f 70 75 70 20 69 64 3d | <menup|opup id=|
|00000830| 22 6d 65 6e 75 5f 46 69 | 6c 65 50 6f 70 75 70 22 |"menu_Fi|lePopup"|
|00000840| 3e 0a 20 20 20 20 3c 6d | 65 6e 75 73 65 70 61 72 |>. <m|enusepar|
|00000850| 61 74 6f 72 20 69 6e 73 | 65 72 74 61 66 74 65 72 |ator ins|ertafter|
|00000860| 3d 22 6f 66 66 6c 69 6e | 65 4d 65 6e 75 49 74 65 |="offlin|eMenuIte|
|00000870| 6d 22 2f 3e 0a 20 20 3c | 2f 6d 65 6e 75 70 6f 70 |m"/>. <|/menupop|
|00000880| 75 70 3e 0a 0a 3c 2f 6f | 76 65 72 6c 61 79 3e 0a |up>..</o|verlay>.|
|00000890| 50 4b 03 04 0a 00 00 00 | 00 00 8b 90 41 32 d7 89 |PK......|....A2..|
|000008a0| 0c b3 33 20 00 00 33 20 | 00 00 29 00 00 00 63 6f |..3 ..3 |..)...co|
|000008b0| 6e 74 65 6e 74 2f 6d 65 | 73 73 65 6e 67 65 72 2d |ntent/me|ssenger-|
|000008c0| 6f 66 66 6c 69 6e 65 2f | 6d 61 69 6c 2d 6f 66 66 |offline/|mail-off|
|000008d0| 6c 69 6e 65 2e 6a 73 2f | 2f 40 6c 69 6e 65 20 33 |line.js/|/@line 3|
|000008e0| 38 20 22 2f 62 75 69 6c | 64 2f 62 75 69 6c 64 64 |8 "/buil|d/buildd|
|000008f0| 2f 6d 6f 7a 69 6c 6c 61 | 2d 74 68 75 6e 64 65 72 |/mozilla|-thunder|
|00000900| 62 69 72 64 2d 31 2e 35 | 2e 30 2e 31 30 2f 62 75 |bird-1.5|.0.10/bu|
|00000910| 69 6c 64 2d 64 69 72 2f | 6d 6f 7a 69 6c 6c 61 2f |ild-dir/|mozilla/|
|00000920| 6d 61 69 6c 2f 65 78 74 | 65 6e 73 69 6f 6e 73 2f |mail/ext|ensions/|
|00000930| 6f 66 66 6c 69 6e 65 2f | 63 6f 6e 74 65 6e 74 2f |offline/|content/|
|00000940| 6d 61 69 6c 2d 6f 66 66 | 6c 69 6e 65 2e 6a 73 22 |mail-off|line.js"|
|00000950| 0a 0a 76 61 72 20 67 4d | 61 69 6c 4f 66 66 6c 69 |..var gM|ailOffli|
|00000960| 6e 65 50 72 65 66 73 20 | 3d 20 6e 75 6c 6c 3b 0a |nePrefs |= null;.|
|00000970| 76 61 72 20 67 4f 66 66 | 6c 69 6e 65 50 72 6f 6d |var gOff|lineProm|
|00000980| 70 74 73 42 75 6e 64 6c | 65 3b 0a 76 61 72 20 67 |ptsBundl|e;.var g|
|00000990| 50 72 6f 6d 70 74 53 65 | 72 76 69 63 65 3b 0a 76 |PromptSe|rvice;.v|
|000009a0| 61 72 20 67 4f 66 66 6c | 69 6e 65 4d 61 6e 61 67 |ar gOffl|ineManag|
|000009b0| 65 72 3b 0a 0a 0a 66 75 | 6e 63 74 69 6f 6e 20 4d |er;...fu|nction M|
|000009c0| 61 69 6c 4f 66 66 6c 69 | 6e 65 53 74 61 74 65 43 |ailOffli|neStateC|
|000009d0| 68 61 6e 67 65 64 28 67 | 6f 69 6e 67 4f 66 66 6c |hanged(g|oingOffl|
|000009e0| 69 6e 65 29 0a 7b 0a 20 | 20 2f 2f 20 74 77 65 61 |ine).{. | // twea|
|000009f0| 6b 20 61 6e 79 20 6d 61 | 69 6c 20 55 49 20 68 65 |k any ma|il UI he|
|00000a00| 72 65 20 74 68 61 74 20 | 6e 65 65 64 73 20 74 6f |re that |needs to|
|00000a10| 20 63 68 61 6e 67 65 20 | 77 68 65 6e 20 77 65 20 | change |when we |
|00000a20| 67 6f 20 6f 66 66 6c 69 | 6e 65 20 6f 72 20 63 6f |go offli|ne or co|
|00000a30| 6d 65 20 62 61 63 6b 20 | 6f 6e 6c 69 6e 65 0a 20 |me back |online. |
|00000a40| 20 67 46 6f 6c 64 65 72 | 4a 75 73 74 53 77 69 74 | gFolder|JustSwit|
|00000a50| 63 68 65 64 20 3d 20 74 | 72 75 65 3b 0a 7d 0a 0a |ched = t|rue;.}..|
|00000a60| 66 75 6e 63 74 69 6f 6e | 20 4d 73 67 53 65 74 74 |function| MsgSett|
|00000a70| 69 6e 67 73 4f 66 66 6c | 69 6e 65 28 29 0a 7b 0a |ingsOffl|ine().{.|
|00000a80| 20 20 20 20 77 69 6e 64 | 6f 77 2e 70 61 72 65 6e | wind|ow.paren|
|00000a90| 74 2e 4d 73 67 41 63 63 | 6f 75 6e 74 4d 61 6e 61 |t.MsgAcc|ountMana|
|00000aa0| 67 65 72 28 27 61 6d 2d | 6f 66 66 6c 69 6e 65 2e |ger('am-|offline.|
|00000ab0| 78 75 6c 27 29 3b 0a 7d | 0a 0a 2f 2f 20 49 6e 69 |xul');.}|..// Ini|
|00000ac0| 74 20 50 72 65 66 73 53 | 65 72 76 69 63 65 0a 66 |t PrefsS|ervice.f|
|00000ad0| 75 6e 63 74 69 6f 6e 20 | 47 65 74 4d 61 69 6c 4f |unction |GetMailO|
|00000ae0| 66 66 6c 69 6e 65 50 72 | 65 66 73 28 29 0a 7b 0a |fflinePr|efs().{.|
|00000af0| 20 20 2f 2f 20 53 74 6f | 72 65 20 74 68 65 20 70 | // Sto|re the p|
|00000b00| 72 65 66 73 20 6f 62 6a | 65 63 74 0a 20 20 74 72 |refs obj|ect. tr|
|00000b10| 79 20 7b 0a 20 20 20 20 | 76 61 72 20 70 72 65 66 |y {. |var pref|
|00000b20| 73 53 65 72 76 69 63 65 | 20 3d 20 43 6f 6d 70 6f |sService| = Compo|
|00000b30| 6e 65 6e 74 73 2e 63 6c | 61 73 73 65 73 5b 22 40 |nents.cl|asses["@|
|00000b40| 6d 6f 7a 69 6c 6c 61 2e | 6f 72 67 2f 70 72 65 66 |mozilla.|org/pref|
|00000b50| 65 72 65 6e 63 65 73 2d | 73 65 72 76 69 63 65 3b |erences-|service;|
|00000b60| 31 22 5d 3b 0a 20 20 20 | 20 69 66 20 28 70 72 65 |1"];. | if (pre|
|00000b70| 66 73 53 65 72 76 69 63 | 65 29 0a 20 20 20 20 70 |fsServic|e). p|
|00000b80| 72 65 66 73 53 65 72 76 | 69 63 65 20 3d 20 70 72 |refsServ|ice = pr|
|00000b90| 65 66 73 53 65 72 76 69 | 63 65 2e 67 65 74 53 65 |efsServi|ce.getSe|
|00000ba0| 72 76 69 63 65 28 29 3b | 0a 20 20 20 20 69 66 20 |rvice();|. if |
|00000bb0| 28 70 72 65 66 73 53 65 | 72 76 69 63 65 29 0a 20 |(prefsSe|rvice). |
|00000bc0| 20 20 20 67 4d 61 69 6c | 4f 66 66 6c 69 6e 65 50 | gMail|OfflineP|
|00000bd0| 72 65 66 73 20 3d 20 70 | 72 65 66 73 53 65 72 76 |refs = p|refsServ|
|00000be0| 69 63 65 2e 51 75 65 72 | 79 49 6e 74 65 72 66 61 |ice.Quer|yInterfa|
|00000bf0| 63 65 28 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 69 6e |ce(Compo|nents.in|
|00000c00| 74 65 72 66 61 63 65 73 | 2e 6e 73 49 50 72 65 66 |terfaces|.nsIPref|
|00000c10| 42 72 61 6e 63 68 29 3b | 0a 0a 20 20 20 20 69 66 |Branch);|.. if|
|00000c20| 20 28 21 67 4d 61 69 6c | 4f 66 66 6c 69 6e 65 50 | (!gMail|OfflineP|
|00000c30| 72 65 66 73 29 0a 20 20 | 20 20 64 75 6d 70 28 22 |refs). | dump("|
|00000c40| 66 61 69 6c 65 64 20 74 | 6f 20 67 65 74 20 70 72 |failed t|o get pr|
|00000c50| 65 66 73 20 73 65 72 76 | 69 63 65 21 5c 6e 22 29 |efs serv|ice!\n")|
|00000c60| 3b 0a 20 20 7d 0a 20 20 | 63 61 74 63 68 28 65 78 |;. }. |catch(ex|
|00000c70| 29 20 7b 0a 20 20 20 20 | 64 75 6d 70 28 22 66 61 |) {. |dump("fa|
|00000c80| 69 6c 65 64 20 74 6f 20 | 67 65 74 20 70 72 65 66 |iled to |get pref|
|00000c90| 73 20 73 65 72 76 69 63 | 65 21 5c 6e 22 29 3b 0a |s servic|e!\n");.|
|00000ca0| 20 20 7d 0a 7d 0a 0a 2f | 2f 20 43 68 65 63 6b 20 | }.}../|/ Check |
|00000cb0| 66 6f 72 20 75 6e 73 65 | 6e 74 20 6d 65 73 73 61 |for unse|nt messa|
|00000cc0| 67 65 73 0a 66 75 6e 63 | 74 69 6f 6e 20 43 68 65 |ges.func|tion Che|
|00000cd0| 63 6b 46 6f 72 55 6e 73 | 65 6e 74 4d 65 73 73 61 |ckForUns|entMessa|
|00000ce0| 67 65 73 28 29 0a 7b 0a | 20 20 74 72 79 0a 20 20 |ges().{.| try. |
|00000cf0| 7b 0a 20 20 20 20 76 61 | 72 20 61 6d 20 3d 20 43 |{. va|r am = C|
|00000d00| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 63 6c 61 73 73 65 |omponent|s.classe|
|00000d10| 73 5b 22 40 6d 6f 7a 69 | 6c 6c 61 2e 6f 72 67 2f |s["@mozi|lla.org/|
|00000d20| 6d 65 73 73 65 6e 67 65 | 72 2f 61 63 63 6f 75 6e |messenge|r/accoun|
|00000d30| 74 2d 6d 61 6e 61 67 65 | 72 3b 31 22 5d 0a 20 20 |t-manage|r;1"]. |
|00000d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2e | | .|
|00000d50| 67 65 74 53 65 72 76 69 | 63 65 28 43 6f 6d 70 6f |getServi|ce(Compo|
|00000d60| 6e 65 6e 74 73 2e 69 6e | 74 65 72 66 61 63 65 73 |nents.in|terfaces|
|00000d70| 2e 6e 73 49 4d 73 67 41 | 63 63 6f 75 6e 74 4d 61 |.nsIMsgA|ccountMa|
|00000d80| 6e 61 67 65 72 29 3b 0a | 20 20 20 20 76 61 72 20 |nager);.| var |
|00000d90| 6d 73 67 53 65 6e 64 6c | 61 74 65 72 20 3d 20 43 |msgSendl|ater = C|
|00000da0| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 63 6c 61 73 73 65 |omponent|s.classe|
|00000db0| 73 5b 22 40 6d 6f 7a 69 | 6c 6c 61 2e 6f 72 67 2f |s["@mozi|lla.org/|
|00000dc0| 6d 65 73 73 65 6e 67 65 | 72 63 6f 6d 70 6f 73 65 |messenge|rcompose|
|00000dd0| 2f 73 65 6e 64 6c 61 74 | 65 72 3b 31 22 5d 0a 20 |/sendlat|er;1"]. |
|00000de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000df0| 2e 67 65 74 53 65 72 76 | 69 63 65 28 43 6f 6d 70 |.getServ|ice(Comp|
|00000e00| 6f 6e 65 6e 74 73 2e 69 | 6e 74 65 72 66 61 63 65 |onents.i|nterface|
|00000e10| 73 2e 6e 73 49 4d 73 67 | 53 65 6e 64 4c 61 74 65 |s.nsIMsg|SendLate|
|00000e20| 72 29 3b 0a 20 20 20 20 | 76 61 72 20 69 64 65 6e |r);. |var iden|
|00000e30| 74 69 74 69 65 73 43 6f | 75 6e 74 2c 20 61 6c 6c |titiesCo|unt, all|
|00000e40| 49 64 65 6e 74 69 74 69 | 65 73 2c 20 63 75 72 72 |Identiti|es, curr|
|00000e50| 65 6e 74 49 64 65 6e 74 | 69 74 79 2c 20 6e 75 6d |entIdent|ity, num|
|00000e60| 4d 65 73 73 61 67 65 73 | 2c 20 6d 73 67 46 6f 6c |Messages|, msgFol|
|00000e70| 64 65 72 3b 0a 0a 20 20 | 20 20 69 66 28 61 6d 29 |der;.. | if(am)|
|00000e80| 20 7b 20 0a 20 20 20 20 | 20 20 61 6c 6c 49 64 65 | { . | allIde|
|00000e90| 6e 74 69 74 69 65 73 20 | 3d 20 61 6d 2e 61 6c 6c |ntities |= am.all|
|00000ea0| 49 64 65 6e 74 69 74 69 | 65 73 3b 0a 20 20 20 20 |Identiti|es;. |
|00000eb0| 20 20 69 64 65 6e 74 69 | 74 69 65 73 43 6f 75 6e | identi|tiesCoun|
|00000ec0| 74 20 3d 20 61 6c 6c 49 | 64 65 6e 74 69 74 69 65 |t = allI|dentitie|
|00000ed0| 73 2e 43 6f 75 6e 74 28 | 29 3b 0a 20 20 20 20 20 |s.Count(|);. |
|00000ee0| 20 66 6f 72 20 28 76 61 | 72 20 69 20 3d 20 30 3b | for (va|r i = 0;|
|00000ef0| 20 69 20 3c 20 69 64 65 | 6e 74 69 74 69 65 73 43 | i < ide|ntitiesC|
|00000f00| 6f 75 6e 74 3b 20 69 2b | 2b 29 20 7b 0a 20 20 20 |ount; i+|+) {. |
|00000f10| 20 20 20 20 20 63 75 72 | 72 65 6e 74 49 64 65 6e | cur|rentIden|
|00000f20| 74 69 74 79 20 3d 20 61 | 6c 6c 49 64 65 6e 74 69 |tity = a|llIdenti|
|00000f30| 74 69 65 73 2e 51 75 65 | 72 79 45 6c 65 6d 65 6e |ties.Que|ryElemen|
|00000f40| 74 41 74 28 69 2c 20 43 | 6f 6d 70 6f 6e 65 6e 74 |tAt(i, C|omponent|
|00000f50| 73 2e 69 6e 74 65 72 66 | 61 63 65 73 2e 6e 73 49 |s.interf|aces.nsI|
|00000f60| 4d 73 67 49 64 65 6e 74 | 69 74 79 29 3b 0a 20 20 |MsgIdent|ity);. |
|00000f70| 20 20 20 20 20 20 6d 73 | 67 46 6f 6c 64 65 72 20 | ms|gFolder |
|00000f80| 3d 20 6d 73 67 53 65 6e | 64 6c 61 74 65 72 2e 67 |= msgSen|dlater.g|
|00000f90| 65 74 55 6e 73 65 6e 74 | 4d 65 73 73 61 67 65 73 |etUnsent|Messages|
|00000fa0| 46 6f 6c 64 65 72 28 63 | 75 72 72 65 6e 74 49 64 |Folder(c|urrentId|
|00000fb0| 65 6e 74 69 74 79 29 3b | 0a 20 20 20 20 20 20 20 |entity);|. |
|00000fc0| 20 69 66 28 6d 73 67 46 | 6f 6c 64 65 72 29 20 7b | if(msgF|older) {|
|00000fd0| 0a 20 20 20 20 20 20 20 | 20 20 20 2f 2f 20 69 66 |. | // if|
|00000fe0| 20 74 72 75 65 2c 20 64 | 65 73 63 65 6e 64 73 20 | true, d|escends |
|00000ff0| 69 6e 74 6f 20 61 6c 6c | 20 73 75 62 66 6f 6c 64 |into all| subfold|
|00001000| 65 72 73 20 0a 20 20 20 | 20 20 20 20 20 20 20 6e |ers . | n|
|00001010| 75 6d 4d 65 73 73 61 67 | 65 73 20 3d 20 6d 73 67 |umMessag|es = msg|
|00001020| 46 6f 6c 64 65 72 2e 67 | 65 74 54 6f 74 61 6c 4d |Folder.g|etTotalM|
|00001030| 65 73 73 61 67 65 73 28 | 66 61 6c 73 65 29 3b 0a |essages(|false);.|
|00001040| 20 20 20 20 20 20 20 20 | 20 20 69 66 28 6e 75 6d | | if(num|
|00001050| 4d 65 73 73 61 67 65 73 | 20 3e 20 30 29 20 72 65 |Messages| > 0) re|
|00001060| 74 75 72 6e 20 74 72 75 | 65 3b 0a 20 20 20 20 20 |turn tru|e;. |
|00001070| 20 20 20 7d 0a 20 20 20 | 20 20 20 7d 20 0a 20 20 | }. | } . |
|00001080| 20 20 7d 0a 20 20 7d 0a | 20 20 63 61 74 63 68 28 | }. }.| catch(|
|00001090| 65 78 29 20 7b 0a 20 20 | 7d 0a 20 20 72 65 74 75 |ex) {. |}. retu|
|000010a0| 72 6e 20 66 61 6c 73 65 | 3b 0a 7d 0a 0a 2f 2f 20 |rn false|;.}..// |
|000010b0| 49 6e 69 74 20 6e 73 49 | 50 72 6f 6d 70 74 53 65 |Init nsI|PromptSe|
|000010c0| 72 76 69 63 65 20 26 20 | 73 74 72 69 6e 67 73 2e |rvice & |strings.|
|000010d0| 0a 66 75 6e 63 74 69 6f | 6e 20 49 6e 69 74 50 72 |.functio|n InitPr|
|000010e0| 6f 6d 70 74 73 28 29 0a | 7b 0a 20 20 69 66 28 21 |ompts().|{. if(!|
|000010f0| 67 50 72 6f 6d 70 74 53 | 65 72 76 69 63 65 29 20 |gPromptS|ervice) |
|00001100| 7b 0a 20 20 20 20 67 50 | 72 6f 6d 70 74 53 65 72 |{. gP|romptSer|
|00001110| 76 69 63 65 20 3d 20 43 | 6f 6d 70 6f 6e 65 6e 74 |vice = C|omponent|
|00001120| 73 2e 63 6c 61 73 73 65 | 73 5b 22 40 6d 6f 7a 69 |s.classe|s["@mozi|
|00001130| 6c 6c 61 2e 6f 72 67 2f | 65 6d 62 65 64 63 6f 6d |lla.org/|embedcom|
|00001140| 70 2f 70 72 6f 6d 70 74 | 2d 73 65 72 76 69 63 65 |p/prompt|-service|
|00001150| 3b 31 22 5d 2e 67 65 74 | 53 65 72 76 69 63 65 28 |;1"].get|Service(|
|00001160| 29 3b 0a 20 20 20 20 67 | 50 72 6f 6d 70 74 53 65 |);. g|PromptSe|
|00001170| 72 76 69 63 65 20 3d 20 | 67 50 72 6f 6d 70 74 53 |rvice = |gPromptS|
|00001180| 65 72 76 69 63 65 2e 51 | 75 65 72 79 49 6e 74 65 |ervice.Q|ueryInte|
|00001190| 72 66 61 63 65 28 43 6f | 6d 70 6f 6e 65 6e 74 73 |rface(Co|mponents|
|000011a0| 2e 69 6e 74 65 72 66 61 | 63 65 73 2e 6e 73 49 50 |.interfa|ces.nsIP|
|000011b0| 72 6f 6d 70 74 53 65 72 | 76 69 63 65 29 3b 0a 20 |romptSer|vice);. |
|000011c0| 20 7d 0a 20 20 69 66 20 | 28 21 67 4f 66 66 6c 69 | }. if |(!gOffli|
|000011d0| 6e 65 50 72 6f 6d 70 74 | 73 42 75 6e 64 6c 65 29 |nePrompt|sBundle)|
|000011e0| 20 0a 20 20 20 20 67 4f | 66 66 6c 69 6e 65 50 72 | . gO|fflinePr|
|000011f0| 6f 6d 70 74 73 42 75 6e | 64 6c 65 20 3d 20 64 6f |omptsBun|dle = do|
|00001200| 63 75 6d 65 6e 74 2e 67 | 65 74 45 6c 65 6d 65 6e |cument.g|etElemen|
|00001210| 74 42 79 49 64 28 22 62 | 75 6e 64 6c 65 5f 6f 66 |tById("b|undle_of|
|00001220| 66 6c 69 6e 65 50 72 6f | 6d 70 74 73 22 29 3b 0a |flinePro|mpts");.|
|00001230| 7d 0a 0a 2f 2f 20 70 72 | 6f 6d 70 74 20 66 6f 72 |}..// pr|ompt for|
|00001240| 20 73 65 6e 64 69 6e 67 | 20 6d 65 73 73 61 67 65 | sending| message|
|00001250| 73 20 77 68 69 6c 65 20 | 67 6f 69 6e 67 20 6f 6e |s while |going on|
|00001260| 6c 69 6e 65 2c 20 61 6e | 64 20 67 6f 20 6f 6e 6c |line, an|d go onl|
|00001270| 69 6e 65 2e 0a 66 75 6e | 63 74 69 6f 6e 20 50 72 |ine..fun|ction Pr|
|00001280| 6f 6d 70 74 53 65 6e 64 | 4d 65 73 73 61 67 65 73 |omptSend|Messages|
|00001290| 28 29 0a 7b 0a 20 20 49 | 6e 69 74 50 72 6f 6d 70 |().{. I|nitPromp|
|000012a0| 74 73 28 29 3b 0a 20 20 | 49 6e 69 74 53 65 72 76 |ts();. |InitServ|
|000012b0| 69 63 65 73 28 29 3b 0a | 0a 20 20 69 66 20 28 67 |ices();.|. if (g|
|000012c0| 50 72 6f 6d 70 74 53 65 | 72 76 69 63 65 29 20 7b |PromptSe|rvice) {|
|000012d0| 0a 20 20 20 20 76 61 72 | 20 63 68 65 63 6b 56 61 |. var| checkVa|
|000012e0| 6c 75 65 20 3d 20 7b 76 | 61 6c 75 65 3a 74 72 75 |lue = {v|alue:tru|
|000012f0| 65 7d 3b 0a 20 20 20 20 | 76 61 72 20 62 75 74 74 |e};. |var butt|
|00001300| 6f 6e 50 72 65 73 73 65 | 64 20 3d 20 67 50 72 6f |onPresse|d = gPro|
|00001310| 6d 70 74 53 65 72 76 69 | 63 65 2e 63 6f 6e 66 69 |mptServi|ce.confi|
|00001320| 72 6d 45 78 28 77 69 6e | 64 6f 77 2c 20 0a 20 20 |rmEx(win|dow, . |
|00001330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001340| 20 20 20 20 20 20 20 20 | 67 4f 66 66 6c 69 6e 65 | |gOffline|
|00001350| 50 72 6f 6d 70 74 73 42 | 75 6e 64 6c 65 2e 67 65 |PromptsB|undle.ge|
|00001360| 74 53 74 72 69 6e 67 28 | 27 73 65 6e 64 4d 65 73 |tString(|'sendMes|
|00001370| 73 61 67 65 73 57 69 6e | 64 6f 77 54 69 74 6c 65 |sagesWin|dowTitle|
|00001380| 27 29 2c 20 0a 20 20 20 | 20 20 20 20 20 20 20 20 |'), . | |
|00001390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 67 | | g|
|000013a0| 4f 66 66 6c 69 6e 65 50 | 72 6f 6d 70 74 73 42 75 |OfflineP|romptsBu|
|000013b0| 6e 64 6c 65 2e 67 65 74 | 53 74 72 69 6e 67 28 27 |ndle.get|String('|
|000013c0| 73 65 6e 64 4d 65 73 73 | 61 67 65 73 4c 61 62 65 |sendMess|agesLabe|
|000013d0| 6c 27 29 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |l'),. | |
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 67 | | g|
|000013f0| 50 72 6f 6d 70 74 53 65 | 72 76 69 63 65 2e 42 55 |PromptSe|rvice.BU|
|00001400| 54 54 4f 4e 5f 54 49 54 | 4c 45 5f 49 53 5f 53 54 |TTON_TIT|LE_IS_ST|
|00001410| 52 49 4e 47 20 2a 20 28 | 67 50 72 6f 6d 70 74 53 |RING * (|gPromptS|
|00001420| 65 72 76 69 63 65 2e 42 | 55 54 54 4f 4e 5f 50 4f |ervice.B|UTTON_PO|
|00001430| 53 5f 30 20 2b 20 0a 20 | 20 20 20 20 20 20 20 20 |S_0 + . | |
|00001440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001450| 20 20 20 67 50 72 6f 6d | 70 74 53 65 72 76 69 63 | gProm|ptServic|
|00001460| 65 2e 42 55 54 54 4f 4e | 5f 50 4f 53 5f 31 20 2b |e.BUTTON|_POS_1 +|
|00001470| 20 67 50 72 6f 6d 70 74 | 53 65 72 76 69 63 65 2e | gPrompt|Service.|
|00001480| 42 55 54 54 4f 4e 5f 50 | 4f 53 5f 32 29 2c 0a 20 |BUTTON_P|OS_2),. |
|00001490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014a0| 20 20 20 20 20 20 20 20 | 20 67 4f 66 66 6c 69 6e | | gOfflin|
|000014b0| 65 50 72 6f 6d 70 74 73 | 42 75 6e 64 6c 65 2e 67 |ePrompts|Bundle.g|
|000014c0| 65 74 53 74 72 69 6e 67 | 28 27 73 65 6e 64 4d 65 |etString|('sendMe|
|000014d0| 73 73 61 67 65 73 53 65 | 6e 64 42 75 74 74 6f 6e |ssagesSe|ndButton|
|000014e0| 4c 61 62 65 6c 27 29 2c | 0a 20 20 20 20 20 20 20 |Label'),|. |
|000014f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001500| 20 20 20 67 4f 66 66 6c | 69 6e 65 50 72 6f 6d 70 | gOffl|inePromp|
|00001510| 74 73 42 75 6e 64 6c 65 | 2e 67 65 74 53 74 72 69 |tsBundle|.getStri|
|00001520| 6e 67 28 27 73 65 6e 64 | 4d 65 73 73 61 67 65 73 |ng('send|Messages|
|00001530| 43 61 6e 63 65 6c 42 75 | 74 74 6f 6e 4c 61 62 65 |CancelBu|ttonLabe|
|00001540| 6c 27 29 2c 0a 20 20 20 | 20 20 20 20 20 20 20 20 |l'),. | |
|00001550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 67 | | g|
|00001560| 4f 66 66 6c 69 6e 65 50 | 72 6f 6d 70 74 73 42 75 |OfflineP|romptsBu|
|00001570| 6e 64 6c 65 2e 67 65 74 | 53 74 72 69 6e 67 28 27 |ndle.get|String('|
|00001580| 73 65 6e 64 4d 65 73 73 | 61 67 65 73 4e 6f 53 65 |sendMess|agesNoSe|
|00001590| 6e 64 42 75 74 74 6f 6e | 4c 61 62 65 6c 27 29 2c |ndButton|Label'),|
|000015a0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000015b0| 20 20 20 20 20 20 20 20 | 20 20 20 67 4f 66 66 6c | | gOffl|
|000015c0| 69 6e 65 50 72 6f 6d 70 | 74 73 42 75 6e 64 6c 65 |inePromp|tsBundle|
|000015d0| 2e 67 65 74 53 74 72 69 | 6e 67 28 27 73 65 6e 64 |.getStri|ng('send|
|000015e0| 4d 65 73 73 61 67 65 73 | 43 68 65 63 6b 62 6f 78 |Messages|Checkbox|
|000015f0| 4c 61 62 65 6c 27 29 2c | 20 0a 20 20 20 20 20 20 |Label'),| . |
|00001600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001610| 20 20 20 20 63 68 65 63 | 6b 56 61 6c 75 65 29 3b | chec|kValue);|
|00001620| 0a 20 20 20 20 69 66 28 | 62 75 74 74 6f 6e 50 72 |. if(|buttonPr|
|00001630| 65 73 73 65 64 20 3d 3d | 20 30 29 20 7b 0a 20 20 |essed ==| 0) {. |
|00001640| 20 20 20 20 67 4d 61 69 | 6c 4f 66 66 6c 69 6e 65 | gMai|lOffline|
|00001650| 50 72 65 66 73 2e 73 65 | 74 49 6e 74 50 72 65 66 |Prefs.se|tIntPref|
|00001660| 28 22 6f 66 66 6c 69 6e | 65 2e 73 65 6e 64 2e 75 |("offlin|e.send.u|
|00001670| 6e 73 65 6e 74 5f 6d 65 | 73 73 61 67 65 73 22 2c |nsent_me|ssages",|
|00001680| 20 21 63 68 65 63 6b 56 | 61 6c 75 65 2e 76 61 6c | !checkV|alue.val|
|00001690| 75 65 29 3b 0a 20 20 20 | 20 20 20 67 4f 66 66 6c |ue);. | gOffl|
|000016a0| 69 6e 65 4d 61 6e 61 67 | 65 72 2e 67 6f 4f 6e 6c |ineManag|er.goOnl|
|000016b0| 69 6e 65 28 74 72 75 65 | 2c 20 74 72 75 65 2c 20 |ine(true|, true, |
|000016c0| 6d 73 67 57 69 6e 64 6f | 77 29 3b 0a 20 20 20 20 |msgWindo|w);. |
|000016d0| 20 20 72 65 74 75 72 6e | 20 74 72 75 65 3b 0a 20 | return| true;. |
|000016e0| 20 20 20 7d 0a 20 20 20 | 20 69 66 28 62 75 74 74 | }. | if(butt|
|000016f0| 6f 6e 50 72 65 73 73 65 | 64 20 3d 3d 20 31 29 20 |onPresse|d == 1) |
|00001700| 7b 0a 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 66 |{. |return f|
|00001710| 61 6c 73 65 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |alse;. | }. |
|00001720| 69 66 28 62 75 74 74 6f | 6e 50 72 65 73 73 65 64 |if(butto|nPressed|
|00001730| 20 3d 3d 20 32 29 20 7b | 0a 20 20 20 20 20 20 67 | == 2) {|. g|
|00001740| 4d 61 69 6c 4f 66 66 6c | 69 6e 65 50 72 65 66 73 |MailOffl|inePrefs|
|00001750| 2e 73 65 74 49 6e 74 50 | 72 65 66 28 22 6f 66 66 |.setIntP|ref("off|
|00001760| 6c 69 6e 65 2e 73 65 6e | 64 2e 75 6e 73 65 6e 74 |line.sen|d.unsent|
|00001770| 5f 6d 65 73 73 61 67 65 | 73 22 2c 20 32 2a 21 63 |_message|s", 2*!c|
|00001780| 68 65 63 6b 56 61 6c 75 | 65 2e 76 61 6c 75 65 29 |heckValu|e.value)|
|00001790| 3b 0a 20 20 20 20 20 20 | 67 4f 66 66 6c 69 6e 65 |;. |gOffline|
|000017a0| 4d 61 6e 61 67 65 72 2e | 67 6f 4f 6e 6c 69 6e 65 |Manager.|goOnline|
|000017b0| 28 66 61 6c 73 65 2c 20 | 74 72 75 65 2c 20 6d 73 |(false, |true, ms|
|000017c0| 67 57 69 6e 64 6f 77 29 | 3b 0a 20 20 20 20 20 20 |gWindow)|;. |
|000017d0| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0a 20 20 20 |return t|rue;. |
|000017e0| 20 7d 0a 20 20 7d 0a 20 | 20 72 65 74 75 72 6e 20 | }. }. | return |
|000017f0| 66 61 6c 73 65 3b 0a 7d | 0a 0a 2f 2f 20 70 72 6f |false;.}|..// pro|
|00001800| 6d 70 74 20 66 6f 72 20 | 64 6f 77 6e 6c 61 64 69 |mpt for |downladi|
|00001810| 6e 67 20 6d 65 73 73 61 | 67 65 73 20 77 68 69 6c |ng messa|ges whil|
|00001820| 65 20 67 6f 69 6e 67 20 | 6f 66 66 6c 69 6e 65 2c |e going |offline,|
|00001830| 20 61 6e 64 20 73 79 6e | 63 68 72 6f 6e 69 73 65 | and syn|chronise|
|00001840| 0a 66 75 6e 63 74 69 6f | 6e 20 50 72 6f 6d 70 74 |.functio|n Prompt|
|00001850| 44 6f 77 6e 6c 6f 61 64 | 4d 65 73 73 61 67 65 73 |Download|Messages|
|00001860| 28 29 0a 7b 0a 20 20 49 | 6e 69 74 50 72 6f 6d 70 |().{. I|nitPromp|
|00001870| 74 73 28 29 3b 0a 20 20 | 49 6e 69 74 53 65 72 76 |ts();. |InitServ|
|00001880| 69 63 65 73 28 29 3b 0a | 0a 20 20 69 66 28 67 50 |ices();.|. if(gP|
|00001890| 72 6f 6d 70 74 53 65 72 | 76 69 63 65 29 20 7b 0a |romptSer|vice) {.|
|000018a0| 20 20 20 20 76 61 72 20 | 63 68 65 63 6b 56 61 6c | var |checkVal|
|000018b0| 75 65 20 3d 20 7b 76 61 | 6c 75 65 3a 74 72 75 65 |ue = {va|lue:true|
|000018c0| 7d 3b 0a 20 20 20 20 76 | 61 72 20 62 75 74 74 6f |};. v|ar butto|
|000018d0| 6e 50 72 65 73 73 65 64 | 20 3d 20 67 50 72 6f 6d |nPressed| = gProm|
|000018e0| 70 74 53 65 72 76 69 63 | 65 2e 63 6f 6e 66 69 72 |ptServic|e.confir|
|000018f0| 6d 45 78 28 77 69 6e 64 | 6f 77 2c 20 0a 20 20 20 |mEx(wind|ow, . |
|00001900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001910| 20 20 20 20 20 20 20 67 | 4f 66 66 6c 69 6e 65 50 | g|OfflineP|
|00001920| 72 6f 6d 70 74 73 42 75 | 6e 64 6c 65 2e 67 65 74 |romptsBu|ndle.get|
|00001930| 53 74 72 69 6e 67 28 27 | 64 6f 77 6e 6c 6f 61 64 |String('|download|
|00001940| 4d 65 73 73 61 67 65 73 | 57 69 6e 64 6f 77 54 69 |Messages|WindowTi|
|00001950| 74 6c 65 27 29 2c 20 0a | 20 20 20 20 20 20 20 20 |tle'), .| |
|00001960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001970| 20 20 67 4f 66 66 6c 69 | 6e 65 50 72 6f 6d 70 74 | gOffli|nePrompt|
|00001980| 73 42 75 6e 64 6c 65 2e | 67 65 74 53 74 72 69 6e |sBundle.|getStrin|
|00001990| 67 28 27 64 6f 77 6e 6c | 6f 61 64 4d 65 73 73 61 |g('downl|oadMessa|
|000019a0| 67 65 73 4c 61 62 65 6c | 27 29 2c 0a 20 20 20 20 |gesLabel|'),. |
|000019b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019c0| 20 20 20 20 20 20 67 50 | 72 6f 6d 70 74 53 65 72 | gP|romptSer|
|000019d0| 76 69 63 65 2e 42 55 54 | 54 4f 4e 5f 54 49 54 4c |vice.BUT|TON_TITL|
|000019e0| 45 5f 49 53 5f 53 54 52 | 49 4e 47 20 2a 20 28 67 |E_IS_STR|ING * (g|
|000019f0| 50 72 6f 6d 70 74 53 65 | 72 76 69 63 65 2e 42 55 |PromptSe|rvice.BU|
|00001a00| 54 54 4f 4e 5f 50 4f 53 | 5f 30 20 2b 20 0a 20 20 |TTON_POS|_0 + . |
|00001a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a20| 20 20 20 20 20 20 20 20 | 20 20 67 50 72 6f 6d 70 | | gPromp|
|00001a30| 74 53 65 72 76 69 63 65 | 2e 42 55 54 54 4f 4e 5f |tService|.BUTTON_|
|00001a40| 50 4f 53 5f 31 20 2b 20 | 67 50 72 6f 6d 70 74 53 |POS_1 + |gPromptS|
|00001a50| 65 72 76 69 63 65 2e 42 | 55 54 54 4f 4e 5f 50 4f |ervice.B|UTTON_PO|
|00001a60| 53 5f 32 29 2c 0a 20 20 | 20 20 20 20 20 20 20 20 |S_2),. | |
|00001a70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001a80| 67 4f 66 66 6c 69 6e 65 | 50 72 6f 6d 70 74 73 42 |gOffline|PromptsB|
|00001a90| 75 6e 64 6c 65 2e 67 65 | 74 53 74 72 69 6e 67 28 |undle.ge|tString(|
|00001aa0| 27 64 6f 77 6e 6c 6f 61 | 64 4d 65 73 73 61 67 65 |'downloa|dMessage|
|00001ab0| 73 44 6f 77 6e 6c 6f 61 | 64 42 75 74 74 6f 6e 4c |sDownloa|dButtonL|
|00001ac0| 61 62 65 6c 27 29 2c 0a | 20 20 20 20 20 20 20 20 |abel'),.| |
|00001ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ae0| 20 20 67 4f 66 66 6c 69 | 6e 65 50 72 6f 6d 70 74 | gOffli|nePrompt|
|00001af0| 73 42 75 6e 64 6c 65 2e | 67 65 74 53 74 72 69 6e |sBundle.|getStrin|
|00001b00| 67 28 27 64 6f 77 6e 6c | 6f 61 64 4d 65 73 73 61 |g('downl|oadMessa|
|00001b10| 67 65 73 43 61 6e 63 65 | 6c 42 75 74 74 6f 6e 4c |gesCance|lButtonL|
|00001b20| 61 62 65 6c 27 29 2c 0a | 20 20 20 20 20 20 20 20 |abel'),.| |
|00001b30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001b40| 20 20 67 4f 66 66 6c 69 | 6e 65 50 72 6f 6d 70 74 | gOffli|nePrompt|
|00001b50| 73 42 75 6e 64 6c 65 2e | 67 65 74 53 74 72 69 6e |sBundle.|getStrin|
|00001b60| 67 28 27 64 6f 77 6e 6c | 6f 61 64 4d 65 73 73 61 |g('downl|oadMessa|
|00001b70| 67 65 73 4e 6f 44 6f 77 | 6e 6c 6f 61 64 42 75 74 |gesNoDow|nloadBut|
|00001b80| 74 6f 6e 4c 61 62 65 6c | 27 29 2c 20 0a 20 20 20 |tonLabel|'), . |
|00001b90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001ba0| 20 20 20 20 20 20 20 67 | 4f 66 66 6c 69 6e 65 50 | g|OfflineP|
|00001bb0| 72 6f 6d 70 74 73 42 75 | 6e 64 6c 65 2e 67 65 74 |romptsBu|ndle.get|
|00001bc0| 53 74 72 69 6e 67 28 27 | 64 6f 77 6e 6c 6f 61 64 |String('|download|
|00001bd0| 4d 65 73 73 61 67 65 73 | 43 68 65 63 6b 62 6f 78 |Messages|Checkbox|
|00001be0| 4c 61 62 65 6c 27 29 2c | 20 0a 20 20 20 20 20 20 |Label'),| . |
|00001bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001c00| 20 20 20 20 63 68 65 63 | 6b 56 61 6c 75 65 29 3b | chec|kValue);|
|00001c10| 0a 20 20 20 20 69 66 28 | 62 75 74 74 6f 6e 50 72 |. if(|buttonPr|
|00001c20| 65 73 73 65 64 20 3d 3d | 20 30 29 20 7b 0a 20 20 |essed ==| 0) {. |
|00001c30| 20 20 20 20 67 4d 61 69 | 6c 4f 66 66 6c 69 6e 65 | gMai|lOffline|
|00001c40| 50 72 65 66 73 2e 73 65 | 74 49 6e 74 50 72 65 66 |Prefs.se|tIntPref|
|00001c50| 28 22 6f 66 66 6c 69 6e | 65 2e 64 6f 77 6e 6c 6f |("offlin|e.downlo|
|00001c60| 61 64 2e 64 6f 77 6e 6c | 6f 61 64 5f 6d 65 73 73 |ad.downl|oad_mess|
|00001c70| 61 67 65 73 22 2c 20 21 | 63 68 65 63 6b 56 61 6c |ages", !|checkVal|
|00001c80| 75 65 2e 76 61 6c 75 65 | 29 3b 0a 20 20 20 20 20 |ue.value|);. |
|00001c90| 20 67 4f 66 66 6c 69 6e | 65 4d 61 6e 61 67 65 72 | gOfflin|eManager|
|00001ca0| 2e 73 79 6e 63 68 72 6f | 6e 69 7a 65 46 6f 72 4f |.synchro|nizeForO|
|00001cb0| 66 66 6c 69 6e 65 28 74 | 72 75 65 2c 20 74 72 75 |ffline(t|rue, tru|
|00001cc0| 65 2c 20 66 61 6c 73 65 | 2c 20 74 72 75 65 2c 20 |e, false|, true, |
|00001cd0| 6d 73 67 57 69 6e 64 6f | 77 29 3b 0a 20 20 20 20 |msgWindo|w);. |
|00001ce0| 20 20 72 65 74 75 72 6e | 20 74 72 75 65 3b 0a 20 | return| true;. |
|00001cf0| 20 20 20 7d 0a 20 20 20 | 20 69 66 28 62 75 74 74 | }. | if(butt|
|00001d00| 6f 6e 50 72 65 73 73 65 | 64 20 3d 3d 20 31 29 20 |onPresse|d == 1) |
|00001d10| 7b 0a 20 20 20 20 20 20 | 72 65 74 75 72 6e 20 66 |{. |return f|
|00001d20| 61 6c 73 65 3b 0a 20 20 | 20 20 7d 0a 20 20 20 20 |alse;. | }. |
|00001d30| 69 66 28 62 75 74 74 6f | 6e 50 72 65 73 73 65 64 |if(butto|nPressed|
|00001d40| 20 3d 3d 20 32 29 20 7b | 0a 20 20 20 20 20 20 67 | == 2) {|. g|
|00001d50| 4d 61 69 6c 4f 66 66 6c | 69 6e 65 50 72 65 66 73 |MailOffl|inePrefs|
|00001d60| 2e 73 65 74 49 6e 74 50 | 72 65 66 28 22 6f 66 66 |.setIntP|ref("off|
|00001d70| 6c 69 6e 65 2e 64 6f 77 | 6e 6c 6f 61 64 2e 64 6f |line.dow|nload.do|
|00001d80| 77 6e 6c 6f 61 64 5f 6d | 65 73 73 61 67 65 73 22 |wnload_m|essages"|
|00001d90| 2c 20 32 2a 21 63 68 65 | 63 6b 56 61 6c 75 65 2e |, 2*!che|ckValue.|
|00001da0| 76 61 6c 75 65 29 3b 0a | 20 20 20 20 20 20 67 4f |value);.| gO|
|00001db0| 66 66 6c 69 6e 65 4d 61 | 6e 61 67 65 72 2e 73 79 |fflineMa|nager.sy|
|00001dc0| 6e 63 68 72 6f 6e 69 7a | 65 46 6f 72 4f 66 66 6c |nchroniz|eForOffl|
|00001dd0| 69 6e 65 28 66 61 6c 73 | 65 2c 20 66 61 6c 73 65 |ine(fals|e, false|
|00001de0| 2c 20 66 61 6c 73 65 2c | 20 74 72 75 65 2c 20 6d |, false,| true, m|
|00001df0| 73 67 57 69 6e 64 6f 77 | 29 3b 0a 20 20 20 20 20 |sgWindow|);. |
|00001e00| 20 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0a 20 20 | return |true;. |
|00001e10| 20 20 7d 0a 20 20 7d 0a | 20 20 72 65 74 75 72 6e | }. }.| return|
|00001e20| 20 66 61 6c 73 65 3b 0a | 7d 0a 0a 2f 2f 20 6f 6e | false;.|}..// on|
|00001e30| 6c 69 6e 65 3f 0a 66 75 | 6e 63 74 69 6f 6e 20 43 |line?.fu|nction C|
|00001e40| 68 65 63 6b 4f 6e 6c 69 | 6e 65 28 29 0a 7b 0a 20 |heckOnli|ne().{. |
|00001e50| 20 76 61 72 20 69 6f 53 | 65 72 76 69 63 65 20 3d | var ioS|ervice =|
|00001e60| 20 43 6f 6d 70 6f 6e 65 | 6e 74 73 2e 63 6c 61 73 | Compone|nts.clas|
|00001e70| 73 65 73 5b 22 40 6d 6f | 7a 69 6c 6c 61 2e 6f 72 |ses["@mo|zilla.or|
|00001e80| 67 2f 6e 65 74 77 6f 72 | 6b 2f 69 6f 2d 73 65 72 |g/networ|k/io-ser|
|00001e90| 76 69 63 65 3b 31 22 5d | 0a 20 20 20 20 20 20 20 |vice;1"]|. |
|00001ea0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001eb0| 20 20 2e 67 65 74 53 65 | 72 76 69 63 65 28 43 6f | .getSe|rvice(Co|
|00001ec0| 6d 70 6f 6e 65 6e 74 73 | 2e 69 6e 74 65 72 66 61 |mponents|.interfa|
|00001ed0| 63 65 73 2e 6e 73 49 49 | 4f 53 65 72 76 69 63 65 |ces.nsII|OService|
|00001ee0| 29 3b 0a 20 20 72 65 74 | 75 72 6e 20 28 21 69 6f |);. ret|urn (!io|
|00001ef0| 53 65 72 76 69 63 65 2e | 6f 66 66 6c 69 6e 65 29 |Service.|offline)|
|00001f00| 3b 0a 7d 0a 0a 2f 2f 20 | 49 6e 69 74 20 50 72 65 |;.}..// |Init Pre|
|00001f10| 66 20 53 65 72 76 69 63 | 65 20 26 20 4f 66 66 6c |f Servic|e & Offl|
|00001f20| 69 6e 65 20 4d 61 6e 61 | 67 65 72 0a 66 75 6e 63 |ine Mana|ger.func|
|00001f30| 74 69 6f 6e 20 49 6e 69 | 74 53 65 72 76 69 63 65 |tion Ini|tService|
|00001f40| 73 28 29 0a 7b 0a 20 20 | 69 66 20 28 21 67 4d 61 |s().{. |if (!gMa|
|00001f50| 69 6c 4f 66 66 6c 69 6e | 65 50 72 65 66 73 29 20 |ilOfflin|ePrefs) |
|00001f60| 0a 20 20 20 20 47 65 74 | 4d 61 69 6c 4f 66 66 6c |. Get|MailOffl|
|00001f70| 69 6e 65 50 72 65 66 73 | 28 29 3b 0a 0a 20 20 69 |inePrefs|();.. i|
|00001f80| 66 20 28 21 67 4f 66 66 | 6c 69 6e 65 4d 61 6e 61 |f (!gOff|lineMana|
|00001f90| 67 65 72 29 20 0a 20 20 | 20 20 47 65 74 4f 66 66 |ger) . | GetOff|
|00001fa0| 6c 69 6e 65 4d 67 72 53 | 65 72 76 69 63 65 28 29 |lineMgrS|ervice()|
|00001fb0| 3b 0a 7d 0a 0a 2f 2f 20 | 49 6e 69 74 20 4f 66 66 |;.}..// |Init Off|
|00001fc0| 6c 69 6e 65 20 4d 61 6e | 61 67 65 72 0a 66 75 6e |line Man|ager.fun|
|00001fd0| 63 74 69 6f 6e 20 47 65 | 74 4f 66 66 6c 69 6e 65 |ction Ge|tOffline|
|00001fe0| 4d 67 72 53 65 72 76 69 | 63 65 28 29 0a 7b 0a 20 |MgrServi|ce().{. |
|00001ff0| 20 69 66 20 28 21 67 4f | 66 66 6c 69 6e 65 4d 61 | if (!gO|fflineMa|
|00002000| 6e 61 67 65 72 29 20 7b | 0a 20 20 20 20 67 4f 66 |nager) {|. gOf|
|00002010| 66 6c 69 6e 65 4d 61 6e | 61 67 65 72 20 3d 20 43 |flineMan|ager = C|
|00002020| 6f 6d 70 6f 6e 65 6e 74 | 73 2e 63 6c 61 73 73 65 |omponent|s.classe|
|00002030| 73 5b 22 40 6d 6f 7a 69 | 6c 6c 61 2e 6f 72 67 2f |s["@mozi|lla.org/|
|00002040| 6d 65 73 73 65 6e 67 65 | 72 2f 6f 66 66 6c 69 6e |messenge|r/offlin|
|00002050| 65 2d 6d 61 6e 61 67 65 | 72 3b 31 22 5d 20 20 20 |e-manage|r;1"] |
|00002060| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 20 | | . |
|00002070| 20 20 20 20 20 20 20 2e | 67 65 74 53 65 72 76 69 | .|getServi|
|00002080| 63 65 28 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 69 6e |ce(Compo|nents.in|
|00002090| 74 65 72 66 61 63 65 73 | 2e 6e 73 49 4d 73 67 4f |terfaces|.nsIMsgO|
|000020a0| 66 66 6c 69 6e 65 4d 61 | 6e 61 67 65 72 29 3b 0a |fflineMa|nager);.|
|000020b0| 20 20 7d 0a 7d 0a 0a 2f | 2f 20 54 68 69 73 20 66 | }.}../|/ This f|
|000020c0| 75 6e 63 74 69 6f 6e 20 | 6d 75 73 74 20 61 6c 77 |unction |must alw|
|000020d0| 61 79 73 20 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |ays retu|rn false|
|000020e0| 20 74 6f 20 70 72 65 76 | 65 6e 74 20 74 6f 67 67 | to prev|ent togg|
|000020f0| 6c 69 6e 67 20 6f 66 20 | 6f 66 66 6c 69 6e 65 20 |ling of |offline |
|00002100| 73 74 61 74 65 20 62 65 | 63 61 75 73 65 0a 2f 2f |state be|cause.//|
|00002110| 20 77 65 20 63 68 61 6e | 67 65 20 74 68 65 20 6f | we chan|ge the o|
|00002120| 66 66 6c 69 6e 65 20 73 | 74 61 74 65 20 6f 75 72 |ffline s|tate our|
|00002130| 73 65 6c 76 65 73 0a 66 | 75 6e 63 74 69 6f 6e 20 |selves.f|unction |
|00002140| 4d 61 69 6c 43 68 65 63 | 6b 42 65 66 6f 72 65 4f |MailChec|kBeforeO|
|00002150| 66 66 6c 69 6e 65 43 68 | 61 6e 67 65 28 29 0a 7b |fflineCh|ange().{|
|00002160| 0a 20 20 76 61 72 20 69 | 6f 53 65 72 76 69 63 65 |. var i|oService|
|00002170| 20 3d 20 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 63 6c | = Compo|nents.cl|
|00002180| 61 73 73 65 73 5b 22 40 | 6d 6f 7a 69 6c 6c 61 2e |asses["@|mozilla.|
|00002190| 6f 72 67 2f 6e 65 74 77 | 6f 72 6b 2f 69 6f 2d 73 |org/netw|ork/io-s|
|000021a0| 65 72 76 69 63 65 3b 31 | 22 5d 0a 20 20 20 20 20 |ervice;1|"]. |
|000021b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021c0| 20 20 20 20 20 20 20 2e | 67 65 74 53 65 72 76 69 | .|getServi|
|000021d0| 63 65 28 43 6f 6d 70 6f | 6e 65 6e 74 73 2e 69 6e |ce(Compo|nents.in|
|000021e0| 74 65 72 66 61 63 65 73 | 2e 6e 73 49 49 4f 53 65 |terfaces|.nsIIOSe|
|000021f0| 72 76 69 63 65 29 3b 0a | 0a 20 20 76 61 72 20 67 |rvice);.|. var g|
|00002200| 6f 69 6e 67 4f 6e 6c 69 | 6e 65 20 3d 20 69 6f 53 |oingOnli|ne = ioS|
|00002210| 65 72 76 69 63 65 2e 6f | 66 66 6c 69 6e 65 3b 0a |ervice.o|ffline;.|
|00002220| 20 20 76 61 72 20 62 75 | 6e 64 6c 65 20 3d 20 73 | var bu|ndle = s|
|00002230| 72 47 65 74 53 74 72 42 | 75 6e 64 6c 65 28 22 63 |rGetStrB|undle("c|
|00002240| 68 72 6f 6d 65 3a 2f 2f | 63 6f 6d 6d 75 6e 69 63 |hrome://|communic|
|00002250| 61 74 6f 72 2f 6c 6f 63 | 61 6c 65 2f 75 74 69 6c |ator/loc|ale/util|
|00002260| 69 74 79 4f 76 65 72 6c | 61 79 2e 70 72 6f 70 65 |ityOverl|ay.prope|
|00002270| 72 74 69 65 73 22 29 3b | 0a 0a 2f 2f 20 20 6d 65 |rties");|..// me|
|00002280| 73 73 65 6e 67 65 72 2e | 53 65 74 57 69 6e 64 6f |ssenger.|SetWindo|
|00002290| 77 28 77 69 6e 64 6f 77 | 2c 20 6d 73 67 57 69 6e |w(window|, msgWin|
|000022a0| 64 6f 77 29 3b 0a 0a 20 | 20 49 6e 69 74 53 65 72 |dow);.. | InitSer|
|000022b0| 76 69 63 65 73 28 29 3b | 0a 0a 20 20 76 61 72 20 |vices();|.. var |
|000022c0| 70 72 65 66 53 65 6e 64 | 55 6e 73 65 6e 74 4d 65 |prefSend|UnsentMe|
|000022d0| 73 73 61 67 65 73 20 3d | 20 67 4d 61 69 6c 4f 66 |ssages =| gMailOf|
|000022e0| 66 6c 69 6e 65 50 72 65 | 66 73 2e 67 65 74 49 6e |flinePre|fs.getIn|
|000022f0| 74 50 72 65 66 28 22 6f | 66 66 6c 69 6e 65 2e 73 |tPref("o|ffline.s|
|00002300| 65 6e 64 2e 75 6e 73 65 | 6e 74 5f 6d 65 73 73 61 |end.unse|nt_messa|
|00002310| 67 65 73 22 29 3b 0a 20 | 20 76 61 72 20 70 72 65 |ges");. | var pre|
|00002320| 66 44 6f 77 6e 6c 6f 61 | 64 4d 65 73 73 61 67 65 |fDownloa|dMessage|
|00002330| 73 20 20 20 3d 20 67 4d | 61 69 6c 4f 66 66 6c 69 |s = gM|ailOffli|
|00002340| 6e 65 50 72 65 66 73 2e | 67 65 74 49 6e 74 50 72 |nePrefs.|getIntPr|
|00002350| 65 66 28 22 6f 66 66 6c | 69 6e 65 2e 64 6f 77 6e |ef("offl|ine.down|
|00002360| 6c 6f 61 64 2e 64 6f 77 | 6e 6c 6f 61 64 5f 6d 65 |load.dow|nload_me|
|00002370| 73 73 61 67 65 73 22 29 | 3b 0a 0a 20 20 69 66 28 |ssages")|;.. if(|
|00002380| 67 6f 69 6e 67 4f 6e 6c | 69 6e 65 29 20 7b 0a 20 |goingOnl|ine) {. |
|00002390| 20 20 20 73 77 69 74 63 | 68 28 70 72 65 66 53 65 | switc|h(prefSe|
|000023a0| 6e 64 55 6e 73 65 6e 74 | 4d 65 73 73 61 67 65 73 |ndUnsent|Messages|
|000023b0| 29 20 7b 20 0a 20 20 20 | 20 63 61 73 65 20 30 3a |) { . | case 0:|
|000023c0| 0a 20 20 20 20 20 20 69 | 66 28 43 68 65 63 6b 46 |. i|f(CheckF|
|000023d0| 6f 72 55 6e 73 65 6e 74 | 4d 65 73 73 61 67 65 73 |orUnsent|Messages|
|000023e0| 28 29 29 20 7b 20 0a 20 | 20 20 20 20 20 20 20 69 |()) { . | i|
|000023f0| 66 28 21 20 50 72 6f 6d | 70 74 53 65 6e 64 4d 65 |f(! Prom|ptSendMe|
|00002400| 73 73 61 67 65 73 28 29 | 29 20 0a 20 20 20 20 20 |ssages()|) . |
|00002410| 20 20 20 20 20 72 65 74 | 75 72 6e 20 66 61 6c 73 | ret|urn fals|
|00002420| 65 3b 0a 20 20 20 20 20 | 20 7d 0a 20 20 20 20 20 |e;. | }. |
|00002430| 20 65 6c 73 65 20 0a 20 | 20 20 20 20 20 20 20 67 | else . | g|
|00002440| 4f 66 66 6c 69 6e 65 4d | 61 6e 61 67 65 72 2e 67 |OfflineM|anager.g|
|00002450| 6f 4f 6e 6c 69 6e 65 28 | 66 61 6c 73 65 20 2f 2a |oOnline(|false /*|
|00002460| 20 73 65 6e 64 55 6e 73 | 65 6e 74 4d 65 73 73 61 | sendUns|entMessa|
|00002470| 67 65 73 20 2a 2f 2c 20 | 0a 20 20 20 20 20 20 20 |ges */, |. |
|00002480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002490| 20 20 20 20 20 20 20 20 | 20 20 74 72 75 65 20 2f | | true /|
|000024a0| 2a 20 70 6c 61 79 62 61 | 63 6b 4f 66 66 6c 69 6e |* playba|ckOfflin|
|000024b0| 65 49 6d 61 70 4f 70 65 | 72 61 74 69 6f 6e 73 20 |eImapOpe|rations |
|000024c0| 2a 2f 2c 20 0a 20 20 20 | 20 20 20 20 20 20 20 20 |*/, . | |
|000024d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024e0| 20 20 20 20 20 20 6d 73 | 67 57 69 6e 64 6f 77 29 | ms|gWindow)|
|000024f0| 3b 0a 20 20 20 20 20 20 | 62 72 65 61 6b 3b 0a 20 |;. |break;. |
|00002500| 20 20 20 63 61 73 65 20 | 31 3a 0a 20 20 20 20 20 | case |1:. |
|00002510| 20 67 4f 66 66 6c 69 6e | 65 4d 61 6e 61 67 65 72 | gOfflin|eManager|
|00002520| 2e 67 6f 4f 6e 6c 69 6e | 65 28 43 68 65 63 6b 46 |.goOnlin|e(CheckF|
|00002530| 6f 72 55 6e 73 65 6e 74 | 4d 65 73 73 61 67 65 73 |orUnsent|Messages|
|00002540| 28 29 20 2f 2a 20 73 65 | 6e 64 55 6e 73 65 6e 74 |() /* se|ndUnsent|
|00002550| 4d 65 73 73 61 67 65 73 | 20 2a 2f 2c 20 0a 20 20 |Messages| */, . |
|00002560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 74 72 75 | | tru|
|00002580| 65 20 20 2f 2a 20 70 6c | 61 79 62 61 63 6b 4f 66 |e /* pl|aybackOf|
|00002590| 66 6c 69 6e 65 49 6d 61 | 70 4f 70 65 72 61 74 69 |flineIma|pOperati|
|000025a0| 6f 6e 73 20 2a 2f 2c 20 | 0a 20 20 20 20 20 20 20 |ons */, |. |
|000025b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025c0| 20 20 20 20 20 20 20 20 | 6d 73 67 57 69 6e 64 6f | |msgWindo|
|000025d0| 77 29 3b 0a 20 20 20 20 | 20 20 62 72 65 61 6b 3b |w);. | break;|
|000025e0| 0a 20 20 20 20 63 61 73 | 65 20 32 3a 0a 20 20 20 |. cas|e 2:. |
|000025f0| 20 20 20 67 4f 66 66 6c | 69 6e 65 4d 61 6e 61 67 | gOffl|ineManag|
|00002600| 65 72 2e 67 6f 4f 6e 6c | 69 6e 65 28 66 61 6c 73 |er.goOnl|ine(fals|
|00002610| 65 20 2f 2a 20 73 65 6e | 64 55 6e 73 65 6e 74 4d |e /* sen|dUnsentM|
|00002620| 65 73 73 61 67 65 73 20 | 2a 2f 2c 20 0a 20 20 20 |essages |*/, . |
|00002630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002640| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 72 75 65 | | true|
|00002650| 20 2f 2a 20 70 6c 61 79 | 62 61 63 6b 4f 66 66 6c | /* play|backOffl|
|00002660| 69 6e 65 49 6d 61 70 4f | 70 65 72 61 74 69 6f 6e |ineImapO|peration|
|00002670| 73 20 2a 2f 2c 20 0a 20 | 20 20 20 20 20 20 20 20 |s */, . | |
|00002680| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002690| 20 20 20 20 20 20 6d 73 | 67 57 69 6e 64 6f 77 29 | ms|gWindow)|
|000026a0| 3b 0a 20 20 20 20 20 20 | 62 72 65 61 6b 3b 0a 20 |;. |break;. |
|000026b0| 20 20 20 7d 0a 20 20 7d | 0a 20 20 65 6c 73 65 20 | }. }|. else |
|000026c0| 7b 0a 20 20 20 20 2f 2f | 20 67 6f 69 6e 67 20 6f |{. //| going o|
|000026d0| 66 66 6c 69 6e 65 0a 20 | 20 20 20 73 77 69 74 63 |ffline. | switc|
|000026e0| 68 28 70 72 65 66 44 6f | 77 6e 6c 6f 61 64 4d 65 |h(prefDo|wnloadMe|
|000026f0| 73 73 61 67 65 73 29 20 | 7b 09 0a 20 20 20 20 20 |ssages) |{.. |
|00002700| 20 63 61 73 65 20 30 3a | 0a 20 20 20 20 20 20 20 | case 0:|. |
|00002710| 20 69 66 28 21 20 50 72 | 6f 6d 70 74 44 6f 77 6e | if(! Pr|omptDown|
|00002720| 6c 6f 61 64 4d 65 73 73 | 61 67 65 73 28 29 29 20 |loadMess|ages()) |
|00002730| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 3b 0a 20 20 |return f|alse;. |
|00002740| 20 20 20 20 62 72 65 61 | 6b 3b 0a 20 20 20 20 20 | brea|k;. |
|00002750| 20 63 61 73 65 20 31 3a | 0a 20 20 20 20 20 20 20 | case 1:|. |
|00002760| 20 2f 2f 20 64 6f 77 6e | 6c 6f 61 64 20 6e 65 77 | // down|load new|
|00002770| 73 2c 20 64 6f 77 6e 6c | 6f 61 64 20 6d 61 69 6c |s, downl|oad mail|
|00002780| 2c 20 73 65 6e 64 20 75 | 6e 73 65 6e 74 20 6d 65 |, send u|nsent me|
|00002790| 73 73 61 67 65 73 2c 20 | 67 6f 20 6f 66 66 6c 69 |ssages, |go offli|
|000027a0| 6e 65 20 77 68 65 6e 20 | 64 6f 6e 65 2c 20 6d 73 |ne when |done, ms|
|000027b0| 67 20 77 69 6e 64 6f 77 | 0a 20 20 20 20 20 20 20 |g window|. |
|000027c0| 20 67 4f 66 66 6c 69 6e | 65 4d 61 6e 61 67 65 72 | gOfflin|eManager|
|000027d0| 2e 73 79 6e 63 68 72 6f | 6e 69 7a 65 46 6f 72 4f |.synchro|nizeForO|
|000027e0| 66 66 6c 69 6e 65 28 74 | 72 75 65 2c 20 74 72 75 |ffline(t|rue, tru|
|000027f0| 65 2c 20 66 61 6c 73 65 | 2c 20 74 72 75 65 2c 20 |e, false|, true, |
|00002800| 6d 73 67 57 69 6e 64 6f | 77 29 3b 0a 20 20 20 20 |msgWindo|w);. |
|00002810| 20 20 20 20 62 72 65 61 | 6b 3b 0a 20 20 20 20 20 | brea|k;. |
|00002820| 20 63 61 73 65 20 32 3a | 0a 20 20 20 20 20 20 20 | case 2:|. |
|00002830| 20 2f 2f 20 64 6f 77 6e | 6c 6f 61 64 20 6e 65 77 | // down|load new|
|00002840| 73 2c 20 64 6f 77 6e 6c | 6f 61 64 20 6d 61 69 6c |s, downl|oad mail|
|00002850| 2c 20 73 65 6e 64 20 75 | 6e 73 65 6e 74 20 6d 65 |, send u|nsent me|
|00002860| 73 73 61 67 65 73 2c 20 | 67 6f 20 6f 66 66 6c 69 |ssages, |go offli|
|00002870| 6e 65 20 77 68 65 6e 20 | 64 6f 6e 65 2c 20 6d 73 |ne when |done, ms|
|00002880| 67 20 77 69 6e 64 6f 77 | 0a 20 20 20 20 20 20 20 |g window|. |
|00002890| 20 67 4f 66 66 6c 69 6e | 65 4d 61 6e 61 67 65 72 | gOfflin|eManager|
|000028a0| 2e 73 79 6e 63 68 72 6f | 6e 69 7a 65 46 6f 72 4f |.synchro|nizeForO|
|000028b0| 66 66 6c 69 6e 65 28 66 | 61 6c 73 65 2c 20 66 61 |ffline(f|alse, fa|
|000028c0| 6c 73 65 2c 20 66 61 6c | 73 65 2c 20 74 72 75 65 |lse, fal|se, true|
|000028d0| 2c 20 6d 73 67 57 69 6e | 64 6f 77 29 3b 0a 20 20 |, msgWin|dow);. |
|000028e0| 20 20 20 20 20 20 62 72 | 65 61 6b 3b 0a 20 20 20 | br|eak;. |
|000028f0| 20 7d 0a 20 20 7d 0a 20 | 20 72 65 74 75 72 6e 20 | }. }. | return |
|00002900| 66 61 6c 73 65 3b 0a 7d | 0a 0a 50 4b 01 02 17 03 |false;.}|..PK....|
|00002910| 0a 00 00 00 00 00 0e 92 | d6 32 88 a9 d4 0d 43 08 |........|.2....C.|
|00002920| 00 00 43 08 00 00 2f 00 | 00 00 00 00 00 00 00 00 |..C.../.|........|
|00002930| 00 00 a4 81 00 00 00 00 | 63 6f 6e 74 65 6e 74 2f |........|content/|
|00002940| 6d 65 73 73 65 6e 67 65 | 72 2d 6f 66 66 6c 69 6e |messenge|r-offlin|
|00002950| 65 2f 6d 73 67 4f 66 66 | 6c 69 6e 65 4f 76 65 72 |e/msgOff|lineOver|
|00002960| 6c 61 79 2e 78 75 6c 50 | 4b 01 02 17 03 0a 00 00 |lay.xulP|K.......|
|00002970| 00 00 00 8b 90 41 32 d7 | 89 0c b3 33 20 00 00 33 |.....A2.|...3 ..3|
|00002980| 20 00 00 29 00 00 00 00 | 00 00 00 00 00 00 00 a4 | ..)....|........|
|00002990| 81 90 08 00 00 63 6f 6e | 74 65 6e 74 2f 6d 65 73 |.....con|tent/mes|
|000029a0| 73 65 6e 67 65 72 2d 6f | 66 66 6c 69 6e 65 2f 6d |senger-o|ffline/m|
|000029b0| 61 69 6c 2d 6f 66 66 6c | 69 6e 65 2e 6a 73 50 4b |ail-offl|ine.jsPK|
|000029c0| 05 06 00 00 00 00 02 00 | 02 00 b4 00 00 00 0a 29 |........|.......)|
|000029d0| 00 00 00 00 | |.... | |
+--------+-------------------------+-------------------------+--------+--------+