1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-26 19:02:20 -05:00

offload mail parsing to web worker

This commit is contained in:
Felix Hammerl 2014-03-03 21:02:14 +01:00
parent 386fbfa307
commit 58eb7ecb6d
2 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@
"dependencies": {
"crypto-lib": "https://github.com/whiteout-io/crypto-lib/tarball/master",
"imap-client": "https://github.com/whiteout-io/imap-client/tarball/master",
"mailreader": "https://github.com/whiteout-io/mailreader/tarball/master",
"mailreader": "https://github.com/whiteout-io/mailreader/tarball/dev/worker",
"pgpmailer": "https://github.com/whiteout-io/pgpmailer/tarball/master",
"pgpbuilder": "https://github.com/whiteout-io/pgpbuilder/tarball/master",
"requirejs": "2.1.10"

View File

@ -337,6 +337,8 @@ define(function(require) {
var lawnchairDao, restDao, pubkeyDao, invitationDao,
emailDao, keychain, pgp, userStorage, pgpbuilder;
mailreader.startWorker(config.workerPath + '/../lib/mailreader-parser-worker.js');
// init objects and inject dependencies
restDao = new RestDAO();
pubkeyDao = new PublicKeyDAO(restDao);