Inline Image Attachments not always works
-
Hi,
I have a strange effect at one of my users. But first the current history.
I migrated the user over a year ago from outlook & imap to kopano and webapp/deskapp. The user use images of the company logo and his personal picture in the signature in multiple signatures variantes one with the personal picture and one without it. As he told me, that he had problems with the images that not all recipients see the images, i changed the copy & paste version of his images to some image version which are hosted on his homepage (personal picture) and one which i saved globally on the kopano server which is accessible from all around the world via https.
Now he told me that he had problems, that when i receive a email with inline images and forward it to another user, the images cannot be displayed. Also the images in the signature are missing.
I now logged in in his account and to some tests. From the Kopano User to a IMAP Account on another Server.
- Send Mail with Signature but without Extra Inline Image
On the Outbox of the User the Company Logo is displayed with the “No Image Available” and the Personal Picture is not be displayed. On the Recipient Users Roundcube Mail or Thunderbird i see the Personal Picture but also a “No Image Available” for the Company Logo.
- Send Mail with Signature and Extra Inline Image
It looks similar to the test above, but also the image which i copied from a website, has a “No Image Available”.
- Send Mail without Signature and only with the Extra Inline Image
On the Recipient Client i receive the message “To protect your privacy, Thunderbird has blocked remote content in this message.” If i accept this message, i see the image which i placed into the mail.
So for me it looks like the images in the signature are the problem, but the user want them with no exeption and also he edit the signature once a week to add some “news” messages to his contacts.
It looks like: https://forum.kopano.io/topic/1428/inline-image-from-clipboard/6?_=1579690480391 , but not exactly.
WebApp: 3.5.14.2539+111.1
Kopano Core: 8.7.9
Z-Push: 2.5.1+0-0User Browsers:
Firefox: 72.0.1
Chromium: Version 79.0.3945.117 (Offizieller Build) snap (64-Bit)Recipient Client:
Thunderbird: 68.2.2
-
I have done some tests again and have now some more informations, what i detected.
I re-created the complete signature of the user and added base64 encodings to the image source. Do some tests and see that in the sent folder the mail is displayed with a different font. The correct font should be Arial with the size of 10. When i inspect the html code, the “span” has no font Definition and display me that the size is 13 and the font is Noto Serif. I don’t know from which point this font setting is comming and why it is displayed this way. Because in the signature setting all is correct. Also the picture of the person is missing in the output.
The interesting part, which i now tested is, when i export the mail as .eml file and import it in thunderbird, the mail looks correct. Correct font, size and all pictures are visible. So i conntected via kopano-gateway and imap to the account of this user and look into the sent folder, and it also looks correct.
Is their some converter or some caching in the webapp which destroy the display of mails?
-
I work with the script in /usr/share/doc/kopano-webapp/scripts/signatures/
I wrote a html template like:
<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Signatur</title> </head> <body> <font size="2" face="Arial"> Mit freundlichen Grüßen / With kind regards <p> <b>{%title}{%firstname} {%lastname}</b> </font> <br> <font size="2" face="Arial"> {%company} <br> <br> <img alt="Logo" hspace=3 src=" data:image/jpeg;base64,/9j/4RpSRXhpZgA``` ...
I use the font size attribute on every line… maybe the “secure way”
For the graphics I use the img attribute with base64 code…Works great - no CSS layouts allowed / working…
-
We have the same problem.
Very often the inline images aren’t displayed at the receipient and in the senders sent-folder the image is also missing. This happens very randomly. We also have the problem with the changing font. The eMail looks correct. No image has been inserted. No text has been inserted from another application. Just a plain new mail with the Signature added (Setting in DeskApp “Arial, Size 10”). But some text-lines are displayed after sending in the sent-folder and also at the receipients inbox in different size AND different font.
We have this problem since many versions.Versioninformation:
WebApp: 3.5.12.2482+108.1
Kopano Core: 8.7.5
Z-Push: 2.5.1+0-0
DeskApp: 2.5.4Is this a known problem?
-
@item I cannot use this script templating system, because first all user have their personal photo in the signature and they change each week a text part with currenty news they want to tell others. And i don’t have time and the ressource to do this all week when they have the felling to change something in the signature.
I have done some more tests. I used a demo user to create a dummy signature which looks like the signature of the user. It’s not exactly all effects (font looks correct) of the users, but at least one:
In Kopano WebApp when i create a new mail:
In Kopano WebApp when i send the mail to me, how the mail looks in the outbox, i only added the text “Das ist ein Test”. The second image “portrait” is missing and not displayed. Also it auto created a hyperlink for the email address.
The Mail looks like this in my inbox on thunderbird: