Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail object incomplete #23

Open
kylemac opened this issue Jun 22, 2013 · 1 comment
Open

Mail object incomplete #23

kylemac opened this issue Jun 22, 2013 · 1 comment

Comments

@kylemac
Copy link

kylemac commented Jun 22, 2013

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?

@chirag04
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants