mail-listener icon indicating copy to clipboard operation
mail-listener copied to clipboard

Mail object incomplete

Open kylemac opened this issue 11 years ago • 1 comments

Hey there, I recognize that this may be an issue with mailparser from @andris9 but I'm hoping you may be able to give me an idea of what I might be doing wrong.

repro
After connecting to my imap account, I fire off an email to myself (tried different senders) and console.log the mail object. The issue arises when I notice that that mail object only contains mail.text, mail.headers, mail.priority, and mail.uid. My understanding is that it should incorporate other properties such as to, from and even subject.

Here is the program I'm running - https://gist.github.com/kylemac/cbb126f9dc25eb853c10

I'm using a gmail imap account, perhaps that is what is wrong?

kylemac avatar Jun 22 '13 17:06 kylemac

@kylemac Thanks for reporting. You need to set parse to false on line 85 in dist/mail-listener.js.

@podviaznikov : strange. Need to look again into this.

chirag04 avatar Jun 22 '13 18:06 chirag04