sendgrid / sendgrid-ruby

The Official Twilio SendGrid Led, Community Driven Ruby API Library
https://sendgrid.com
MIT License
620 stars 324 forks source link

EML files turning into multiple attachments when using Inbound Parse #465

Closed nulligor closed 3 years ago

nulligor commented 3 years ago

Issue Summary

When using Griddler + Ruby with Inbound Parse configured .EML files are being split into multiple attachments when sending e-mails from Gmail -> Application.

Steps to Reproduce

  1. Grab or create a sample EML file
  2. Configure both gems to run with Inbound Parse (they consume the Sendgrid::Client)
  3. Send .EML file using Gmail client (with a Gmail account) attached to the configured mx_domain and set breakpoints inside email_processor
  4. Observe a single .EML file turns into multiple attachments

Exception/Log

# paste exception/log here

example

Technical details:

thinkingserious commented 3 years ago

Hello @nulligor,

Thank you for taking the time to report this!

It looks like this issue should be posted here. Thanks!

With best regards,

Elmer

nulligor commented 3 years ago

@thinkingserious To be fair the library doesn't seem to be maintained anymore. I will however leave an issue in there as well.

I'm just a little confused as to where exactly the code for the "splitting of EML files into multiple files" are located or if that's a Sendgrid internal behavior. Do you know where I could get this info?

thinkingserious commented 3 years ago

Hello @nulligor,

I do not believe we split the EML files on the server side. We pass through the content and attachments for parsing on the client side (you may find some example payloads here and helper code for inbound parsing here). To find the code that could be splitting the EML files, I'd look at this repo.

Thank you!

With best regards,

Elmer

JenniferMah commented 3 years ago

Closing due to inactivity. Please open a new issue if you still need help.

cody2094 commented 2 years ago

@thinkingserious To be fair the library doesn't seem to be maintained anymore. I will however leave an issue in there as well.

I'm just a little confused as to where exactly the code for the "splitting of EML files into multiple files" are located or if that's a Sendgrid internal behavior. Do you know where I could get this info?

@nulligor I've just ran into this same issue. Did you happen to open an issue on the other gem or find a fix for the issue?