X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Femail%2Flib%2Futils.js;h=fca8e810718d53bec99cd73b3e1520e6a9de552e;hb=de6f27d8824ffb29cbf937050a12378469af9a53;hp=2b625b7c12dbc66f8469ae658de71bdbb73da44d;hpb=6154c6759c55056c3b23ea2e885ab9e551bbdf0c;p=motion2.git diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index 2b625b7..fca8e81 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 _0xe3a4=['now','root','server/files/attachments/','writeFileSync','from','subject','inReplyTo','date','YYYY-MM-DD\x20HH:mm:ss','filter','application/ms-tnef','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','messageId','parseBuffer','content','
Empty\x20message
','Attachments','Title','Data','getHost','gmail','imap.gmail.com','yahoo','imap.mail.yahoo.com','imap-mail.outlook.com','outlook365','outlook.office365.com','lodash','moment','randomstring','path','util','node-tnef','email','head','address','generate','@xcally.com','value','name','split','length','slice','join','Anonymous','isEmpty','anonymous','html','test','includes','attachments','forEach','push','filename','replace','_SRC','_IMG','\x20[Attachment:\x20','\x20]','body','textAsHtml','0x1?_0x3c8ad8['pop']():'';}return'';}function getMails(_0x5cb0e6,_0x3506e9){var _0x1065bb='';for(var _0x5b361e=0x0;_0x5b361e<_0x3506e9[_0x4e3a('0xb')][_0x4e3a('0xe')];_0x5b361e+=0x1){if(_0x3506e9[_0x4e3a('0xb')][_0x5b361e]['address']!==_0x5cb0e6){if(!_[_0x4e3a('0x12')](_0x1065bb)){_0x1065bb+=',';}_0x1065bb+=_0x3506e9[_0x4e3a('0xb')][_0x5b361e][_0x4e3a('0xc')]||_0x3506e9[_0x4e3a('0xb')][_0x5b361e][_0x4e3a('0x8')]||'';_0x1065bb+='\x20<';_0x1065bb+=_0x3506e9[_0x4e3a('0xb')][_0x5b361e][_0x4e3a('0x8')]?_0x3506e9[_0x4e3a('0xb')][_0x5b361e][_0x4e3a('0x8')]:_0x4e3a('0x13')+random[_0x4e3a('0x9')](0x6)+_0x4e3a('0xa');_0x1065bb+='>';}}return _0x1065bb;}function parseEmail(_0x1e7e83,_0x2d00ae,_0x4e7285){if(_0x2d00ae[_0x4e3a('0x14')]){var _0x249868=/