mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Cleanup mailbox routing
This commit is contained in:
parent
c41adf35f5
commit
5fdc38a40d
2 changed files with 5 additions and 5 deletions
|
|
@ -119,19 +119,18 @@ export const
|
|||
* @returns {string}
|
||||
*/
|
||||
mailBox = (folder, page, search, threadUid) => {
|
||||
page = pInt(page, 1);
|
||||
search = pString(search);
|
||||
|
||||
let result = [HASH_PREFIX + 'mailbox'];
|
||||
|
||||
if (folder) {
|
||||
result.push(folder + (threadUid ? '~' + threadUid : ''));
|
||||
}
|
||||
|
||||
page = pInt(page, 1);
|
||||
if (1 < page) {
|
||||
result.push('p' + page);
|
||||
}
|
||||
|
||||
search = pString(search);
|
||||
if (search) {
|
||||
result.push(encodeURI(search));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue