emailjs / emailjs-imap-client

Low-level JS IMAP client for all your IMAP needs.
MIT License
552 stars 123 forks source link

No envelope #237

Closed cuuupid closed 4 years ago

cuuupid commented 4 years ago

After using List Messages, the result messages don't contain an "envelope" property. Tested on gmail with the query ['uid', 'flags', 'body.peek[HEADER.FIELDS (FROM)]'] and byUid: true. The result messages contain the body key but not the envelope:

[
  {
    '#': 12937,
    uid: 69696,
    flags: [],
    'body[header.fields (from)]': 'From: Sentry <noreply@md.getsentry.com>\r\n\r\n'
  }
]
cuuupid commented 4 years ago

Solved: envelope and bodystructure both need to be added to the query!