mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Code refactoring
This commit is contained in:
parent
ffde4f03a8
commit
b7709c8117
21 changed files with 291 additions and 192 deletions
|
|
@ -113,6 +113,49 @@
|
|||
});
|
||||
};
|
||||
|
||||
// UserAjaxUserPromises.prototype.messageList = function (sFolderFullNameRaw, iOffset, iLimit, sSearch, fTrigger)
|
||||
// {
|
||||
// sFolderFullNameRaw = Utils.pString(sFolderFullNameRaw);
|
||||
// sSearch = Utils.pString(sSearch);
|
||||
// iOffset = Utils.pInt(iOffset);
|
||||
// iLimit = Utils.pInt(iLimit);
|
||||
//
|
||||
// var sFolderHash = Cache.getFolderHash(sFolderFullNameRaw);
|
||||
//
|
||||
// if ('' !== sFolderHash && ('' === sSearch || -1 === sSearch.indexOf('is:')))
|
||||
// {
|
||||
// return this.abort('MessageList')
|
||||
// .getRequest('MessageList', fTrigger,
|
||||
// Links.subQueryPrefix() + '/' + Base64.urlsafe_encode([
|
||||
// sFolderFullNameRaw,
|
||||
// iOffset,
|
||||
// iLimit,
|
||||
// sSearch,
|
||||
// AppStore.projectHash(),
|
||||
// sFolderHash,
|
||||
// Cache.getFolderInboxName() === sFolderFullNameRaw ? Cache.getFolderUidNext(sFolderFullNameRaw) : '',
|
||||
// AppStore.threadsAllowed() && SettingsStore.useThreads() ? '1' : '0',
|
||||
// ''
|
||||
// ].join(String.fromCharCode(0))))
|
||||
// .then(PromisesPopulator.messageList);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return this.abort('MessageList')
|
||||
// .postRequest('MessageList', fTrigger,{
|
||||
// 'Folder': sFolderFullNameRaw,
|
||||
// 'Offset': iOffset,
|
||||
// 'Limit': iLimit,
|
||||
// 'Search': sSearch,
|
||||
// 'UidNext': Cache.getFolderInboxName() === sFolderFullNameRaw ? Cache.getFolderUidNext(sFolderFullNameRaw) : '',
|
||||
// 'UseThreads': AppStore.threadsAllowed() && SettingsStore.useThreads() ? '1' : '0'
|
||||
// })
|
||||
// .then(PromisesPopulator.messageList);
|
||||
// }
|
||||
//
|
||||
// return this.fastReject(Enums.Notification.UnknownError);
|
||||
// };
|
||||
//
|
||||
// UserAjaxUserPromises.prototype.message = function (sFolderFullNameRaw, iUid, fTrigger)
|
||||
// {
|
||||
// sFolderFullNameRaw = Utils.pString(sFolderFullNameRaw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue