X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Femail%2Flib%2Futils.js;h=c4e2f39170f0c2512b33bedbefa656c8ff83c25c;hb=7e2a86485d5b091066011cf58fcba785923a5ac5;hp=fca8e810718d53bec99cd73b3e1520e6a9de552e;hpb=de6f27d8824ffb29cbf937050a12378469af9a53;p=motion2.git diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index fca8e81..c4e2f39 100644 --- a/server/services/email/lib/utils.js +++ b/server/services/email/lib/utils.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x8885=['writeFileSync','content','contentType','parser','from','subject','messageId','date','YYYY-MM-DD\x20HH:mm:ss','filter','application/ms-tnef','info','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','parseBuffer','first','BodyHTML','
Empty\x20message
','Attachments','Data','getHost','gmail','imap.gmail.com','yahoo','imap.mail.yahoo.com','hotmail','imap-mail.outlook.com','outlook365','outlook.office365.com','127.0.0.1','lodash','moment','randomstring','util','node-tnef','../../../config/logger','email','../../../config/environment','head','value','address','anonymous','generate','@xcally.com','name','length','Anonymous','split','pop','isEmpty','html','test','includes','\x20[Attachment:\x20','\x20]','body','textAsHtml','0x1?_0x474c5c[_0x5888('0x12')]():'';}return'';}function getMails(_0x1d1c5f,_0x47c5f8){var _0x250868='';for(var _0x501af1=0x0;_0x501af1<_0x47c5f8[_0x5888('0x9')][_0x5888('0xf')];_0x501af1+=0x1){if(_0x47c5f8[_0x5888('0x9')][_0x501af1][_0x5888('0xa')]!==_0x1d1c5f){if(!_[_0x5888('0x13')](_0x250868)){_0x250868+=',';}_0x250868+=_0x47c5f8[_0x5888('0x9')][_0x501af1][_0x5888('0xe')]||_0x47c5f8[_0x5888('0x9')][_0x501af1][_0x5888('0xa')]||'';_0x250868+='\x20<';_0x250868+=_0x47c5f8[_0x5888('0x9')][_0x501af1]['address']?_0x47c5f8[_0x5888('0x9')][_0x501af1][_0x5888('0xa')]:_0x5888('0xb')+random[_0x5888('0xc')](0x6)+_0x5888('0xd');_0x250868+='>';}}return _0x250868;}function parseEmail(_0x419778,_0x2c2d19,_0xa69166){if(_0x2c2d19[_0x5888('0x14')]){var _0x1e6e0d=/