OpenEMM Support Forum Index OpenEMM Support
Use this forum to get and provide free help regarding OpenEMM
 
 TOP   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

embedded image does not display in offline html mode

 
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Bugs, bug fixes & releases
View previous topic :: View next topic  
Author Message
BG



Joined: 04 Jul 2008
Posts: 15

PostPosted: Fri Sep 05, 2008 1:18 pm    Post subject: embedded image does not display in offline html mode Reply with quote

Hi

If I use embedded image, the openemm uses the content-location entry like this: Content-Location: http://my.openemm.net/image?ci=1&mi=18&name=image.jpg and the img tag is src=3D"http://my.openemm.net/image?ci=1&mi=18&name=image.jpg" this cause that the image won't appear in Outlook because Outlook thinks that this image is an external content Sad However it is embedded into the message.

Is it possible to use Content-ID entry?
eg.: Content-ID: <image001.jpg@01C90F4C.07E0E480>

Or a possible workaround could be if the content-location would contain only the file name, not URL.
eg.: Content-Location: image001.jpg

Thank you in advance
bg
Back to top
View user's profile Send private message
BG



Joined: 04 Jul 2008
Posts: 15

PostPosted: Thu Sep 11, 2008 7:55 am    Post subject: image Reply with quote

Hi

Is understandalble what I wrote? Wink
bg
Back to top
View user's profile Send private message
BG



Joined: 04 Jul 2008
Posts: 15

PostPosted: Thu Sep 11, 2008 8:41 am    Post subject: image Reply with quote

f...ck, your solution is RFC compliant
http://tools.ietf.org/html/rfc2110#section-4.3

Code:

9.2 Example with absolute URIs to an embedded GIF picture


    From: foo1@bar.net
    To: foo2@bar.net
    Subject: A simple example
    Mime-Version: 1.0
    Content-Type: Multipart/related; boundary="boundary-example-1";
                  type=Text/HTML; start=foo3*foo1@bar.net

    --boundary-example-1
       Content-Type: Text/HTML;charset=US-ASCII
       Content-ID: <foo3*foo1@bar.net>

       ... text of the HTML document, which might contain a hyperlink
       to the other body part, for example through a statement such as:
       <IMG SRC="http://www.ietf.cnri.reston.va.us/images/ietflogo.gif"
        ALT="IETF logo">

    --boundary-example-1
       Content-Location:
             http://www.ietf.cnri.reston.va.us/images/ietflogo.gif
       Content-Type: IMAGE/GIF
       Content-Transfer-Encoding: BASE64

       R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
       NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
       etc...

    --boundary-example-1--


but outlook 2003 does not understand it.
MS uses the content-id header if they embed an image:
Code:

9.4 Example using CID URL and Content-ID header to an embedded GIF

   picture

      From: foo1@bar.net
      To: foo2@bar.net
      Subject: A simple example
      Mime-Version: 1.0
      Content-Type: Multipart/related; boundary="boundary-example-1";
                    type=Text/HTML

      --boundary-example-1
         Content-Type: Text/HTML; charset=US-ASCII

         ... text of the HTML document, which might contain a hyperlink
         to the other body part, for example through a statement such as:
         <IMG SRC="cid:foo4*foo1@bar.net" ALT="IETF logo">

      --boundary-example-1
         Content-ID: <foo4*foo1@bar.net>
         Content-Type: IMAGE/GIF
         Content-Transfer-Encoding: BASE64

         R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
         NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
         etc...

      --boundary-example-1--



Maybe relative URI-s could be a solution too:
Code:

9.3 Example with relative URIs to an embedded GIF picture


      From: foo1@bar.net
      To: foo2@bar.net
      Subject: A simple example
      Mime-Version: 1.0
      Content-Base: http://www.ietf.cnri.reston.va.us
      Content-Type: Multipart/related; boundary="boundary-example-1";
                    type=Text/HTML
--boundary-example-1
         Content-Type: Text/HTML; charset=ISO-8859-1
         Content-Transfer-Encoding: QUOTED-PRINTABLE

         ... text of the HTML document, which might contain a hyperlink
         to the other body part, for example through a statement such as:
         <IMG SRC="/images/ietflogo.gif" ALT="IETF logo">
         Example of a copyright sign encoded with Quoted-Printable: =A9
         Example of a copyright sign mapped onto HTML markup: ¨

      --boundary-example-1
         Content-Location: /images/ietflogo.gif
         Content-Type: IMAGE/GIF
         Content-Transfer-Encoding: BASE64

         R0lGODlhGAGgAPEAAP/////ZRaCgoAAAACH+PUNvcHlyaWdodCAoQykgMTk5
         NSBJRVRGLiBVbmF1dGhvcml6ZWQgZHVwbGljYXRpb24gcHJvaGliaXRlZC4A
         etc...

      --boundary-example-1--


I found that the responsible code is in the MailWriterMeta.java from line 782, but I don't know, how to change it. And the agnImage tag handling should change also Sad

Will it be changed in the near future?
Thank you
bg.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Bugs, bug fixes & releases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group