forked from runbox/runbox7
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(messagelist): Upgrade bulk messages to multi-thread with index w…
…orker
- Loading branch information
Showing
12 changed files
with
120 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,6 +260,7 @@ END:VCALENDAR | |
'status': 'success', | ||
'result': messages, | ||
})); | ||
return; | ||
} | ||
|
||
const emailendpoint = requesturl.match(/\/rest\/v1\/email\/([0-9]+)/); | ||
|
@@ -994,28 +995,32 @@ END:VCALENDAR | |
|
||
getMessage(mailid: number): any { | ||
let message_obj = mail_message_obj; | ||
message_obj.status = 'success'; | ||
if (mailid === 11) { | ||
message_obj = JSON.parse(JSON.stringify(mail_message_obj)); | ||
const to = message_obj.result.headers['to']; | ||
delete message_obj.result.headers['to']; | ||
message_obj.result.headers['cc'] = to; | ||
message_obj.result.headers['subject'] = "No 'To', just 'CC'"; | ||
message_obj.result.mid = mailid; | ||
} | ||
if (mailid === 12) { | ||
message_obj = JSON.parse(JSON.stringify(mail_message_obj)); | ||
message_obj.result.headers['to'].value[0].address = "[email protected]"; | ||
message_obj.result.headers['to'].text = "[email protected]"; | ||
message_obj.result.headers['subject'] = "Default from fix test"; | ||
message_obj.result.mid = mailid; | ||
} | ||
if (mailid === 13) { | ||
message_obj = JSON.parse(JSON.stringify(mail_message_obj)); | ||
const to = message_obj.result.headers['to']; | ||
delete message_obj.result.headers['to']; | ||
message_obj.result.headers['cc'] = to; | ||
message_obj.result.headers['subject'] = ""; | ||
message_obj.result.mid = mailid; | ||
} | ||
// This one warns, we couldnt find it! | ||
if (mailid === '14') { | ||
if (mailid === 14) { | ||
message_obj = { | ||
'status':'warning', | ||
'errors': [ | ||
|
@@ -1024,8 +1029,6 @@ END:VCALENDAR | |
}; | ||
} | ||
|
||
message_obj.status = 'success'; | ||
|
||
return message_obj; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.