X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Femail%2Flib%2Futils.js;h=b7cf79223932aca9c52daadcf2f841aa5c4590c3;hb=ed368fdfe923471c0749d5720e7df57649e4ed09;hp=381c340f7f405147cc2c862dd3792f3256dd8805;hpb=91492537a7b94b14914d0db658458118de1ea819;p=motion2.git diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index 381c340..b7cf792 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 _0x72fa=['message','originCc','attach','type','attachment','format','%s-%s','now','root','server/files/attachments/','content','contentType','headerLines','Auto-Submitted:\x20auto-replied','X-Auto-Response-Suppress:\x20All','Precedence:\x20auto_reply','line','parser','from','subject','messageId','inReplyTo','date','YYYY-MM-DD\x20HH:mm:ss','application/ms-tnef','info','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','parseBuffer','BodyHTML','
Empty\x20message
','Attachments','Title','Data','gmail','yahoo','imap.mail.yahoo.com','hotmail','imap-mail.outlook.com','outlook365','outlook.office365.com','127.0.0.1','lodash','moment','path','util','node-tnef','../../../config/environment','head','value','address','anonymous','generate','@xcally.com','name','substring','indexOf','split','length','slice','join','Anonymous','pop','isEmpty','html','test','replace','includes','','body','textAsHtml','0x1?_0x2da16b[_0xa72f('0x11')](0x0,-0x1)[_0xa72f('0x12')]('\x20'):_0x37b9c3[_0xa72f('0xc')];}return _0xa72f('0x13');}function getLastName(_0x157cad){var _0x58e878=_[_0xa72f('0x6')](_0x157cad[_0xa72f('0x7')]);if(_0x58e878&&_0x58e878[_0xa72f('0xc')]){var _0x50dc77=_0x58e878[_0xa72f('0xc')]['split'](/\s+/);return _0x50dc77[_0xa72f('0x10')]>0x1?_0x50dc77[_0xa72f('0x14')]():'';}return'';}function getMails(_0x5c150c,_0x3a50cc){var _0x23b1ec='';for(var _0x461119=0x0;_0x461119<_0x3a50cc[_0xa72f('0x7')]['length'];_0x461119+=0x1){if(_0x3a50cc[_0xa72f('0x7')][_0x461119][_0xa72f('0x8')]!==_0x5c150c){if(!_[_0xa72f('0x15')](_0x23b1ec)){_0x23b1ec+=',';}_0x23b1ec+=_0x3a50cc[_0xa72f('0x7')][_0x461119]['name']||_0x3a50cc[_0xa72f('0x7')][_0x461119][_0xa72f('0x8')]||'';_0x23b1ec+='\x20<';_0x23b1ec+=_0x3a50cc[_0xa72f('0x7')][_0x461119][_0xa72f('0x8')]?_0x3a50cc[_0xa72f('0x7')][_0x461119][_0xa72f('0x8')]:'anonymous'+random[_0xa72f('0xa')](0x6)+'@xcally.com';_0x23b1ec+='>';}}return _0x23b1ec;}function parseEmail(_0x27df85,_0x29d49d,_0x5c1270){if(_0x29d49d[_0xa72f('0x16')]){var _0x2eaf9c=/