You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fetching the message from the server If mail has any images in email like logos/icons etc treated as attachments along with actual attachments how can I get only the actual attachments?
Thanks
The text was updated successfully, but these errors were encountered:
After investigating the issue if there is any embedded image treated as an attachment when I get the HTMLBody just shows me this name not giving me the embedded link imap//. can you please propose to me the best solution for this how can I avoid this as an image or attachment
Had to to more or less the same, personally I'm parsing the body and making a comparison between the id shown in the src, beside the cid and the attachment id, they mostly match.
There are some edge cases though and I'm working on a solution!
When I find a good one i'd be happy to make a PR to work with this situation, maybe returning two different properties, one for literal attachments and one for images inside the body? @Webklex if you're interested in such a solution I'd love to come up with a PR as soon as I find an organic solution that handles also edge cases
For @saimoc and anyone else who land this issue for the same problem, the name after the cid in the src parameter for img in the mail body makes always the correct match with the Attachments content_id attribute.
Given this, you can work as you're more confortable images in the body normally worked as attachments. As said, now that i found out this I'll try to make a good PR for easily handling this part
Fetching the message from the server If mail has any images in email like logos/icons etc treated as attachments along with actual attachments how can I get only the actual attachments?
Thanks
The text was updated successfully, but these errors were encountered: