• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Content-id format of mail message

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all

I have my mail reading application in jsp which display's an email message. I am trying to display a mail which is having images embedded in it.
However i am not able to see images contained inside mail. I can see images when i open the mail in thunderbird.

When i opened mail message in notepad i saw that content-id value of images referenced was not present withing angular braces.

example

<img src="cid:Logo.gif"..>

corresponding content was like follows

Content-Disposition: inline; filename=Logo.gif
Content-ID: Logo.gif

R0lGODlhswA1APcAAOsKHCY0bug........
So here , if i replace line "Content-ID: Logo.gif" with "Content-ID: <Logo.gif>", I am able to view images.
As per RFC (http://www.ietf.org/rfc/rfc2392.txt), i found that content-id is enclosed in angle brackets (<>) but on wikipedia, I found that this is not mandatory.
Anyone knows what's the correct format of content id ?

Within my code while reading the message, if i go to change value header "Content-id" to "<logo.gif" using setHeader method, I get IllegalWriteException.
I guess its because i cant modify incoming mail . Please correct me if I am wrong.
 
Siddhesh Deodhar
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Resolved while parsing the mail. Added logic to extract data in different fashion.
 
reply
    Bookmark Topic Watch Topic
  • New Topic