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

TypeError: (0 , _ramda.pathOr)(...).trim is not a function #204

Open
petercraft opened this issue Mar 6, 2019 · 0 comments
Open

TypeError: (0 , _ramda.pathOr)(...).trim is not a function #204

petercraft opened this issue Mar 6, 2019 · 0 comments

Comments

@petercraft
Copy link

petercraft commented Mar 6, 2019

const emailParams = ['uid', 'envelope', 'body[]'];
await client.listMessages(crawlerFolder, queryEmailsNumber, emailParams, {valueAsString: false});

Throws an error

TypeError: (0 , _ramda.pathOr)(...).trim is not a function

While without "{valueAsString: false}" it is working fine.
Unfortunately some email body (strings) I'm listing are encoded with base64, some are in quoted printable, so I want to have Uint8Array to be able to decode body my way. With this error its impossible at the moment.

Seems like this part is failing:

emailjs-imap-client/dist/command-parser.js:186

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

1 participant