-
Notifications
You must be signed in to change notification settings - Fork 38
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
Attachments not showing inline #17
Comments
I had the same issue, fixed by adding code below to the function
|
Thanks a lot @steinkem, the trick is putting the images inline ! |
I made a test with 1 mail containing 2 images, I then replied with 1 image, replied with 1 image, replied with 1 image, replied with 1 image. And the bug is really ramdom :
I launched several times the script for the same mail, it is each time the same Fail. |
I now guess it is due to the Blob size limitation of 2Mo of the Replace function. |
You can see the problem when clicking on "original message" in gmail. If this breaks the tag (e.g. I added this code in the beginning of
and changed the line This regex can probably be written in one line but my brain is not processing that :-) |
@AlexBeep : Well spotted for the area divided by "=". Your Regex does the job. I have another problem with images which are not inserted in the mail with img-cids, but which are hyperlinks like this : Have you experienced the same and did somebody found the solution ? |
I've been trying to get the attachments to show inline, but they seem to all be added at the end. Is this a problem with
.getAs
? All of the images are rendered correctly, but the Blob class just seems to ignore all thecid
references.I haven't seen any traction on this repo in a while, so I don't expect an answer from pixelcog.
The text was updated successfully, but these errors were encountered: