+
Nothing to configure
@@ -22,6 +21,9 @@
").addClass("rl-settings-view-model").hide().attr("data-bind",'template: {name: "'+g.__rlSettingsData.Template+'"}, i18nInit: true'),l.appendTo(k),f.data=e.data(),f.viewModelDom=l,f.__rlSettingsData=g.__rlSettingsData,g.__dom=l,g.__builded=
+!0,g.__vm=f,d.applyBindings(f,l[0]),r.delegateRun(f,"onBuild",[l])):c.log("Cannot find sub settings view model position: SettingsSubScreen"),f&&i.defer(function(){if(b.oCurrentSubScreen){r.delegateRun(b.oCurrentSubScreen,"onHide");b.oCurrentSubScreen.viewModelDom.hide()}b.oCurrentSubScreen=f;if(b.oCurrentSubScreen){b.oCurrentSubScreen.viewModelDom.show();r.delegateRun(b.oCurrentSubScreen,"onShow");i.each(b.menu(),function(a){a.selected(f&&f.__rlSettingsData&&a.route===f.__rlSettingsData.Route)})}c.windowResize()}))};
+K.prototype.onBuild=function(){i.each(Z,function(a){a&&(a.__rlSettingsData&&!i.find(oa,function(b){return b&&b===a}))&&this.menu.push({route:a.__rlSettingsData.Route,label:a.__rlSettingsData.Label,selected:d.observable(!1),disabled:!!i.find(pa,function(b){return b&&b===a})})},this)};K.prototype.routes=function(){var a=i.find(Z,function(a){return a&&a.__rlSettingsData&&a.__rlSettingsData.IsDefault}),b=a?a.__rlSettingsData.Route:"general",a={subname:/^(.*)$/,normalize_:function(a,d){d.subname=c.isUnd(d.subname)?
+b:c.pString(d.subname);return[d.subname]}};return[["{subname}/",a],["{subname}",a],["",a]]};i.extend(ia.prototype,x.prototype);ia.prototype.onShow=function(){e.setTitle("")};i.extend(ja.prototype,K.prototype);ja.prototype.onShow=function(){e.setTitle("");if(!B){var a=this;i.defer(function(){c.initLayoutResizer("#rl-top-resizer-left","#rl-top-resizer-right","#rl-center",a.resizeTrigger,120,300,200,600,f.ClientSideKeyName.FolderListSize)})}};i.extend(v.prototype,sa.prototype);v.prototype.oSettings=
+null;v.prototype.oLink=null;v.prototype.download=function(a){B?g.open(a):this.iframe.attr("src",a)};v.prototype.link=function(){null===this.oLink&&(this.oLink=new n);return this.oLink};v.prototype.local=function(){null===this.oLocal&&(this.oLocal=new P);return this.oLocal};v.prototype.settingsGet=function(a){null===this.oSettings&&(this.oSettings=c.isNormal(Y)?Y:{});return c.isUnd(this.oSettings[a])?null:this.oSettings[a]};v.prototype.settingsSet=function(a,b){null===this.oSettings&&(this.oSettings=
+c.isNormal(Y)?Y:{});this.oSettings[a]=b};v.prototype.setTitle=function(a){a=(0
=a.diff(c,"hours")?l:a.format("L")===c.format("L")?d.i18n("MESSAGE_LIST/TODAY_AT",{TIME:c.format("LT")}):a.clone().subtract("days",1).format("L")===c.format("L")?d.i18n("MESSAGE_LIST/YESTERDAY_IN",{TIME:c.format("LT")}):a.year()===c.year()?c.format("D MMM."):c.format("LL")},a)};d.isFolderExpanded=function(a){var b=e.local().get(g.ClientSideKeyName.ExpandedFolders);return i.isArray(b)&&-1!==i.indexOf(b,a)};d.setExpandedFolder=function(a,b){var c=
-e.local().get(g.ClientSideKeyName.ExpandedFolders);i.isArray(c)||(c=[]);b?(c.push(a),c=i.uniq(c)):c=i.without(c,a);e.local().set(g.ClientSideKeyName.ExpandedFolders,c)};d.initLayoutResizer=function(a,b,c,d,f,g,v,k,h){var f=f||300,g=g||500,v=v||g-f/2,k=k||300,o=0,oa=j(a),r=j(b),G=j(c),b=e.local().get(h)||v,m=function(a,b,c){if(b||c)a=G.width(),b=b?100*(b.size.width/a):null,null===b&&c&&(b=100*(oa.width()/a)),null!==b&&(oa.css({width:"",height:"",right:""+(100-b)+"%"}),r.css({width:"",height:"",left:""+
-b+"%"}))};b&&oa.width(b);o=G.width()-k;o=g>o?o:g;oa.resizable({minWidth:f,maxWidth:o,handles:"e",resize:m,stop:m});m(null,null,!0);O.resize(i.throttle(function(b,c){d&&(d()&&c&&c.element&&c.element[0].id&&"#"+c.element[0].id===""+a)&&(o=G.width()-k,o=g>o?o:g,oa.resizable("option","maxWidth",o),c.size&&c.size.width&&e.local().set(h,c.size.width),m(null,null,!0))},400))};d.initBlockquoteSwitcher=function(a){if(a){var b=j("blockquote:not(.rl-bq-switcher)",a).filter(function(){return 0===j(this).parent().closest("blockquote",
-a).length});b&&0').insertBefore(a).click(function(){a.toggleClass("hidden-bq");d.windowResize()}).after("
").before("
")})}};d.removeBlockquoteSwitcher=function(a){a&&(j(a).find("blockquote.rl-bq-switcher").each(function(){j(this).removeClass("rl-bq-switcher hidden-bq")}),j(a).find(".rlBlockquoteSwitcher").each(function(){j(this).remove()}))};
-d.extendAsViewModel=function(a,b){b&&(b.__name=a,x.regViewModelHook(a,b),i.extend(b.prototype,C.prototype))};d.addSettingsViewModel=function(a,b,c,d,e){a.__rlSettingsData={Label:c,Template:b,Route:d,IsDefault:!!e};Ka.push(a)};d.removeSettingsViewModel=function(a){Xa.push(a)};d.disableSettingsViewModel=function(a){Ya.push(a)};d.convertThemeName=function(a){return d.trim(a.replace(/[^a-zA-Z]/g," ").replace(/([A-Z])/g," $1").replace(/[\s]+/g," "))};d.convertLangName=function(a){return d.i18n("LANGS_NAMES/LANG_"+
-a.toUpperCase().replace(/[^a-zA-Z0-9]+/,"_"),null,a)};d.fakeMd5=function(a){for(var b="",a=d.isUnd(a)?32:d.pInt(a);b.length/g,">").replace(/")};d.draggeblePlace=function(){return j('
').appendTo("#rl-hidden")};
+a.allowCustomTheme=f.observable(!0);a.allowAdditionalAccounts=f.observable(!0);a.determineUserLanguage=f.observable(!1);a.messagesPerPage=f.observable(n.Defaults.MessagesPerPage);a.mainMessagesPerPage=a.messagesPerPage;a.mainMessagesPerPage=f.computed({read:a.messagesPerPage,write:function(b){-1=a.diff(c,"hours")?l:a.format("L")===c.format("L")?d.i18n("MESSAGE_LIST/TODAY_AT",{TIME:c.format("LT")}):a.clone().subtract("days",1).format("L")===c.format("L")?d.i18n("MESSAGE_LIST/YESTERDAY_IN",{TIME:c.format("LT")}):a.year()===c.year()?c.format("D MMM."):c.format("LL")},a)};d.isFolderExpanded=function(a){var b=e.local().get(g.ClientSideKeyName.ExpandedFolders);return i.isArray(b)&&-1!==i.indexOf(b,
+a)};d.setExpandedFolder=function(a,b){var c=e.local().get(g.ClientSideKeyName.ExpandedFolders);i.isArray(c)||(c=[]);b?(c.push(a),c=i.uniq(c)):c=i.without(c,a);e.local().set(g.ClientSideKeyName.ExpandedFolders,c)};d.initLayoutResizer=function(a,b,c,d,f,g,v,k,h){var f=f||300,g=g||500,v=v||g-f/2,k=k||300,o=0,oa=j(a),r=j(b),G=j(c),b=e.local().get(h)||v,m=function(a,b,c){if(b||c)a=G.width(),b=b?100*(b.size.width/a):null,null===b&&c&&(b=100*(oa.width()/a)),null!==b&&(oa.css({width:"",height:"",right:""+
+(100-b)+"%"}),r.css({width:"",height:"",left:""+b+"%"}))};b&&oa.width(b);o=G.width()-k;o=g>o?o:g;oa.resizable({minWidth:f,maxWidth:o,handles:"e",resize:m,stop:m});m(null,null,!0);O.resize(i.throttle(function(b,c){d&&(d()&&c&&c.element&&c.element[0].id&&"#"+c.element[0].id===""+a)&&(o=G.width()-k,o=g>o?o:g,oa.resizable("option","maxWidth",o),c.size&&c.size.width&&e.local().set(h,c.size.width),m(null,null,!0))},400))};d.initBlockquoteSwitcher=function(a){if(a){var b=j("blockquote:not(.rl-bq-switcher)",
+a).filter(function(){return 0===j(this).parent().closest("blockquote",a).length});b&&0').insertBefore(a).click(function(){a.toggleClass("hidden-bq");d.windowResize()}).after("
").before("
")})}};d.removeBlockquoteSwitcher=function(a){a&&(j(a).find("blockquote.rl-bq-switcher").each(function(){j(this).removeClass("rl-bq-switcher hidden-bq")}),
+j(a).find(".rlBlockquoteSwitcher").each(function(){j(this).remove()}))};d.extendAsViewModel=function(a,b){b&&(b.__name=a,x.regViewModelHook(a,b),i.extend(b.prototype,C.prototype))};d.addSettingsViewModel=function(a,b,c,d,e){a.__rlSettingsData={Label:c,Template:b,Route:d,IsDefault:!!e};Ka.push(a)};d.removeSettingsViewModel=function(a){Xa.push(a)};d.disableSettingsViewModel=function(a){Ya.push(a)};d.convertThemeName=function(a){return d.trim(a.replace(/[^a-zA-Z]/g," ").replace(/([A-Z])/g," $1").replace(/[\s]+/g,
+" "))};d.convertLangName=function(a){return d.i18n("LANGS_NAMES/LANG_"+a.toUpperCase().replace(/[^a-zA-Z0-9]+/,"_"),null,a)};d.fakeMd5=function(a){for(var b="",a=d.isUnd(a)?32:d.pInt(a);b.length/g,">").replace(/")};d.draggeblePlace=function(){return j('
').appendTo("#rl-hidden")};
d.defautOptionsAfterRender=function(a,b){b&&!d.isUnd(b.disable)&&f.applyBindingsToNode(a,{disable:b.disable},b)};d.windowPopupKnockout=function(a,b,c,l){var e=null,f=h.open(""),g="__OpenerApplyBindingsUid"+d.fakeMd5()+"__",k=j("#"+b);h[g]=function(){if(f&&f.document.body&&k&&k[0]){var b=j(f.document.body);j("#rl-content",b).html(k.html());j("html",f.document).addClass("external "+j("html").attr("class"));d.i18nToNode(b);E.prototype.applyExternal(a,j("#rl-content",b)[0]);h[g]=null;l(f)}};f.document.open();
f.document.write(''+d.encodeHtml(c)+'');f.document.close();e=f.document.createElement("script");e.type="text/javascript";e.innerHTML="if(window&&window.opener&&window.opener['"+
g+"']){window.opener['"+g+"']();window.opener['"+g+"']=null}";f.document.getElementsByTagName("head")[0].appendChild(e)};d.settingsSaveHelperFunction=function(a,b,c,l){c=c||null;l=d.isUnd(l)?1E3:d.pInt(l);return function(d,e,f,k,h){b.call(c,e&&e.Result?g.SaveSettingsStep.TrueResult:g.SaveSettingsStep.FalseResult);a&&a.call(c,d,e,f,k,h);i.delay(function(){b.call(c,g.SaveSettingsStep.Idle)},l)}};d.settingsSaveHelperSimpleFunction=function(a,b){return d.settingsSaveHelperFunction(null,a,b,1E3)};d.resizeAndCrop=
@@ -265,12 +265,12 @@ f.readAsDataURL(g)):h.alert("this file is not an image.")}return!1}}));return b}
[],b=d.trim(this.from()),c=d.trim(this.to()),e=d.trim(this.subject()),f=d.trim(this.text());b&&""!==b&&a.push("from:"+this.buildSearchStringValue(b));c&&""!==c&&a.push("to:"+this.buildSearchStringValue(c));e&&""!==e&&a.push("subject:"+this.buildSearchStringValue(e));this.hasAttachments()&&a.push("has:attachments");-1').hide(),d.isNormal(a.Result.Html)&&""!==a.Result.Html?(c=!0,h.html(a.Result.Html.toString()).addClass("b-text-part html")):d.isNormal(a.Result.Plain)&&""!==a.Result.Plain?
-(c=!1,h.html(a.Result.Plain.toString()).addClass("b-text-part plain")):c=!1,i.append(h),h.data("rl-is-html",c),h.data("rl-has-images",f),k.isHtml(h.data("rl-is-html")),k.hasImages(h.data("rl-has-images")),k.body=h,g&&k.showInternalImages(!0),k.hasImages()&&this.showImages()&&k.showExternalImages(!0)):(k.isHtml(f.data("rl-is-html")),k.hasImages(f.data("rl-has-images")),k.body=f),this.messageActiveDom(k.body),this.hideMessageBodies(),k.body.show(),h&&d.initBlockquoteSwitcher(h);e.cache().initMessageFlagsFromCache(k);
-k.unseen()&&e.setMessageSeen(k);d.windowResize()}};T.prototype.setMessageList=function(a,b){if(a&&a.Result&&"Collection/MessageCollection"===a.Result["@Object"]&&a.Result["@Collection"]&&d.isArray(a.Result["@Collection"])){var c=e.data(),f=e.cache(),h=null,i=0,j=0,k=0,q=0,o=[],n=c.staticMessageList,r=null,G=null,p=null,s=0,u=!1,k=d.pInt(a.Result.MessageResultCount),q=d.pInt(a.Result.Offset);d.isNonEmptyArray(a.Result.LastCollapsedThreadUids)&&(h=a.Result.LastCollapsedThreadUids);if((p=e.cache().getFolderFromCacheList(d.isNormal(a.Result.Folder)?
-a.Result.Folder:""))&&!b)e.cache().setFolderHash(a.Result.Folder,a.Result.FolderHash),d.isNormal(a.Result.MessageCount)&&p.messageCountAll(a.Result.MessageCount),d.isNormal(a.Result.MessageUnseenCount)&&(d.pInt(p.messageCountUnread())!==d.pInt(a.Result.MessageUnseenCount)&&(u=!0),p.messageCountUnread(a.Result.MessageUnseenCount)),this.initUidNextAndNewMessages(p.fullNameRaw,a.Result.UidNext,a.Result.NewMessages);u&&p&&e.cache().clearMessageFlagsFromCacheByFolder(p.fullNameRaw);i=0;for(j=a.Result["@Collection"].length;i<
-j;i++)if((r=a.Result["@Collection"][i])&&"Object/Message"===r["@Object"]){G=n[i];if(!G||!G.initByJson(r))G=m.newInstanceFromJson(r);G&&(f.hasNewMessageAndRemoveFromCache(G.folderFullNameRaw,G.uid)&&5>=s&&(s++,G.newForAnimation(!0)),G.deleted(!1),b?e.cache().initMessageFlagsFromCache(G):e.cache().storeMessageFlagsToCache(G),G.lastInCollapsedThread(h&&-1(new h.Date).getTime()-k);o&&t.oRequests[o]&&(t.oRequests[o].__aborted&&(e="abort"),t.oRequests[o]=null);t.defaultResponse(a,o,e,c,f,b)});o&&(0 ").addClass("rl-settings-view-model").hide().attr("data-bind",'template: {name: "'+g.__rlSettingsData.Template+'"}, i18nInit: true'),t.appendTo(h),c.data=e.data(),c.viewModelDom=t,c.__rlSettingsData=g.__rlSettingsData,g.__dom=t,g.__builded=!0,g.__vm=c,f.applyBindings(c,t[0]),q.delegateRun(c,"onBuild",[t])):d.log("Cannot find sub settings view model position: SettingsSubScreen"),c&&i.defer(function(){if(b.oCurrentSubScreen){q.delegateRun(b.oCurrentSubScreen,
-"onHide");b.oCurrentSubScreen.viewModelDom.hide()}b.oCurrentSubScreen=c;if(b.oCurrentSubScreen){b.oCurrentSubScreen.viewModelDom.show();q.delegateRun(b.oCurrentSubScreen,"onShow");i.each(b.menu(),function(a){a.selected(c&&c.__rlSettingsData&&a.route===c.__rlSettingsData.Route)})}d.windowResize()}))};ka.prototype.onBuild=function(){i.each(Ka,function(a){a&&(a.__rlSettingsData&&!i.find(Xa,function(b){return b&&b===a}))&&this.menu.push({route:a.__rlSettingsData.Route,label:a.__rlSettingsData.Label,selected:f.observable(!1),
-disabled:!!i.find(Ya,function(b){return b&&b===a})})},this)};ka.prototype.routes=function(){var a=i.find(Ka,function(a){return a&&a.__rlSettingsData&&a.__rlSettingsData.IsDefault}),b=a?a.__rlSettingsData.Route:"general",a={subname:/^(.*)$/,normalize_:function(a,e){e.subname=d.isUnd(e.subname)?b:d.pString(e.subname);return[e.subname]}};return[["{subname}/",a],["{subname}",a],["",a]]};i.extend(Fa.prototype,K.prototype);Fa.prototype.onShow=function(){e.setTitle(d.i18n("TITLES/LOGIN"))};i.extend(V.prototype,
-K.prototype);V.prototype.oLastRoute={};V.prototype.onShow=function(){var a=e.data().accountEmail();e.setTitle((""===a?"":a+" - ")+d.i18n("TITLES/MAILBOX"));this.mailBoxScreenVisibily(!0)};V.prototype.onHide=function(){this.mailBoxScreenVisibily(!1)};V.prototype.onRoute=function(a,b,c){var d=e.data(),a=e.cache().getFolderFullNameRaw(a);if(a=e.cache().getFolderFromCacheList(a))d.currentFolder(a).messageListPage(b).messageListSearch(c),!d.usePreviewPane()&&d.message()&&d.message(null),e.reloadMessageList()};
-V.prototype.onStart=function(){var a=e.data(),b=function(){d.windowResize()};e.settingsGet("AllowAdditionalAccounts")&&e.accounts();i.delay(function(){e.quota()},5E3);i.delay(function(){"INBOX"!==a.currentFolderFullNameRaw()&&e.folderInformation("INBOX")},1E3);i.delay(function(){var b=e.data().spamFolder();b!==a.currentFolderFullNameRaw()&&e.folderInformation(b)},1500);i.delay(function(){var b=e.data().draftFolder();b!==a.currentFolderFullNameRaw()&&e.folderInformation(b)},2E3);i.delay(function(){e.remote().appDelayStart(d.emptyFunction)},
-35E3);h.setInterval(function(){e.folderInformation("INBOX")},12E4);h.setInterval(function(){e.quota()},3E5);ba.toggleClass("rl-no-preview-pane",!a.usePreviewPane());a.folderList.subscribe(b);a.messageList.subscribe(b);a.message.subscribe(b);a.usePreviewPane.subscribe(function(b){ba.toggleClass("rl-no-preview-pane",!b);a.messageList.valueHasMutated()})};V.prototype.onBuild=function(){if(!W){var a=this;i.defer(function(){d.initLayoutResizer("#rl-resizer-left","#rl-resizer-right","#rl-right",a.resizeTriggerForMessageList,
-350,900,350,350,g.ClientSideKeyName.MailBoxListSize)});i.defer(function(){d.initLayoutResizer("#rl-top-resizer-left","#rl-top-resizer-right","#rl-center",a.resizeTriggerForFolderList,120,300,200,600,g.ClientSideKeyName.FolderListSize)})}};V.prototype.routes=function(){var a=function(a,c){c[0]=d.pString(c[0]);c[1]=d.pInt(c[1]);c[1]=0>=c[1]?1:c[1];c[2]=d.pString(c[2]);""===a&&(c[0]="Inbox",c[1]=1);return[decodeURI(c[0]),c[1],decodeURI(c[2])]};return[[/^([a-zA-Z0-9]+)\/p([1-9][0-9]*)\/(.+)\/?$/,{normalize_:a}],
-[/^([a-zA-Z0-9]+)\/p([1-9][0-9]*)\/?$/,{normalize_:a}],[/^([a-zA-Z0-9]+)\/(.+)\/?$/,{normalize_:function(a,c){c[0]=d.pString(c[0]);c[1]=d.pString(c[1]);""===a&&(c[0]="Inbox");return[decodeURI(c[0]),1,decodeURI(c[1])]}}],[/^([^\/]*)$/,{normalize_:a}]]};i.extend(Ta.prototype,ka.prototype);Ta.prototype.onShow=function(){e.setTitle(this.sSettingsTitle)};i.extend(J.prototype,ab.prototype);J.prototype.oSettings=null;J.prototype.oLink=null;J.prototype.download=function(a){W?this.iframe.attr("src",a):h.open(a)};
-J.prototype.link=function(){null===this.oLink&&(this.oLink=new B);return this.oLink};J.prototype.local=function(){null===this.oLocal&&(this.oLocal=new za);return this.oLocal};J.prototype.settingsGet=function(a){null===this.oSettings&&(this.oSettings=d.isNormal(Ia)?Ia:{});return d.isUnd(this.oSettings[a])?null:this.oSettings[a]};J.prototype.settingsSet=function(a,b){null===this.oSettings&&(this.oSettings=d.isNormal(Ia)?Ia:{});this.oSettings[a]=b};J.prototype.setTitle=function(a){a=(0