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

Input fails on message with inline attachments #47

Open
pemontto opened this issue Sep 25, 2019 · 0 comments · May be fixed by #49
Open

Input fails on message with inline attachments #47

pemontto opened this issue Sep 25, 2019 · 0 comments · May be fixed by #49

Comments

@pemontto
Copy link
Contributor

The IMAP input fails to parse emails with inline attachments. It defaults to grabbing the first mail part if the content type doesn't match and tries to decode that part.

part = mail.parts.find { |p| p.content_type.match @content_type_re } || mail.parts.first
message = part.decoded

With inline attachments and in a few other cases that results in this message and an unprocessed email:

Encountered error NoMethodError {:message=>"Can not decode an entire message, try calling #decoded on the various fields and body or parts if it is a multipart message.",
@pemontto pemontto linked a pull request Sep 25, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant