
On Thu, 18 Mar 2004 10:03:51 +0100 (W. Europe Standard Time) Roland
Another question is popping up. (Forgive me if this is already a FAQ but I did not find it yet.) I cannot properly view MS Outlook generated HTML mails that have embedded pictures. They have a src attribute something like: src="cid:image001.jpg@87654321.12345678" (numbers invented by me)
After having read into the code and digged around in the outlook mail, I found that outlook mail is of mime type: MULTIPART/RELATED. The html part of which refers to the other parts via "cid:" (Content Identifier). Now OTRS stores all parts into a directory that contains all elements of an article. When I now open the html part, the browser cannot find the cid: references, of course. So I tried to replace the src attribute by hand with something like: src="index.pl?Action=AgentAttachement&ArticleID=181&FileID=4". This works. So I arrive at the question if it is possible to rewrite the cid's automatically, when storing the html part to disk. Hmm, considering this I would even prefer src="image001.jpg", but of course, I know this is not possible, since the image that is stored on disk has a mime type descriptor prepended to the data, so I would need something like: src="stripheader.pl?image001.jpg". (Having this it would be also very simple to create yearly archives of the articles, while still be able to browse them outside the OTRS framework.) But before I start hacking away I am wondering if I am just trying to reinvent the wheel? Have I overlooked something? Are there any other recommendations of how to achieve the same effect? regards, Roland