1
I am receiving emails in my application through IMAP, and everything is appearing in the right way except the text that is encrypted, how do I decrypt or set up so it is not encrypted??
I’m using the library Node-imap to receive and the library Mailparser to parse the emails, but it’s the first time I’m working with this issue of emails and I have no experience in the subject, who can help me, I appreciate...
Part of one of the headers, all follow the same pattern:
{ attachments:
[ { type: 'attachment',
content: <Buffer ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 00 60 00 60 00 00 ff db 00 43 00 0a 07 07 09 07 06 0a 09 08 09 0b 0b 0a 0c 0f 19 10 0f 0e 0e 0f 1e 16 17 12 ... >,
contentType: 'image/jpeg',
release: null,
filename: 'image001.jpg',
It is in Base64:
D7VuDOYyQMcCqllqbCwt3nEm+5yyfKcA4zjJPI6n8Kn09WgchyDHKuD/smpzplqiKiW6BVOVHp9PSuVzgk1NXPrcvhJUkox5Wt0/lqZ51rbFG4B4MZkYrwVb0Gc9qnuLq31e2e1jR2cjfGCMZIAJGfowqymn24GPJTHyjGPTp+WaSaOOyw9pB
But from what I saw, I think it’s the signature image of the email I received, because this signature contains an image. I’m a little lost because I’ve never worked with it before...
It’s a lot to get put here, will give hundreds of lines. It’s like I post somewhere else and you look there??
– LeonardoEbert
Put only the next code, the one that receives this object for example.
– Sergio
To which object you refer??
– LeonardoEbert
That one
{ attachments:...
is a Javascript object. Puts the function that receives it.– Sergio
How can I send you a TXT file with all the code? It’s a lot that came in the console output.
– LeonardoEbert
https://paste.ofcode.org/ - but don’t put anything personal/private. Then you can put the link here in the question
– Sergio
https://paste.ofcode.org/ZPzVn6qHF5phBi4YGpDwGU# -> Console output https://paste.ofcode.org/34UihdFmjM8akHvtnSd8b8m -> Code that takes the email and also does parse
– LeonardoEbert
That one
console.log
comes from what line in the code?– Sergio
In part
simpleParser(source)
 .then(mail=>{
 console.log(mail)
 })
– LeonardoEbert