Page 1 of 1
Know the CID of an attachment before email is sent
Posted: Wed Jan 05, 2005 4:38 am
by Chris Corbyn
Hi,
First question... Is it only inline attachments that have CID's or do all attachments have them?
Second question... Does anybody know of any software or web email service which allows you to find out the CID of an attachment before it is sent (I need to reference something in the email directly to the CID of the attachment).... the only thing is... I wasn't looking to write a script unless it's dead simple and quick because my reasons for the requirement are not dead important- just for personal use.
If anybody can help it would be great

Posted: Wed Jan 05, 2005 7:45 am
by Chris Corbyn
See this email source in MS Outlook....
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=816003513-05012005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><IMG alt="" hspace=0
src="cid:816003513@05012005-0104" align=baseline border=0></FONT></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><B><FONT face=Arial color=#000080 size=2>Christopher
Corbyn</FONT></B><FONT face=Arial size=2>,</FONT></SPAN> <BR><SPAN
lang=en-us><FONT face=Arial size=2>IT Helpdesk Assistant,</FONT></SPAN>
<BR><SPAN lang=en-us><I><FONT face=Arial color=#808080 size=2>EDS
RMC,</FONT></I></SPAN> <BR><SPAN lang=en-us><I><FONT face=Arial color=#808080
size=2>St Bedes House,</FONT></I></SPAN> <BR><SPAN lang=en-us><I><FONT
face=Arial color=#808080 size=2>Bracken Hill Business Park,</FONT></I></SPAN>
<BR><SPAN lang=en-us><I><FONT face=Arial color=#808080
size=2>Peterlee</FONT></I></SPAN> </P>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>
Notice the CID? It's an image. I'm kinda halfway to what I need except I want the attachment as a JAR and not a JPG. Ok so that's not an image I hear you cry but will it make a difference so long as the file is there and i can reference it then i'll be happy and should be able to do what i need.
So does anyone understand the source enough to be able to see what I should edit to Make that CID a JAR file? I reckon MS Outlook isn't displaying the full source here.. where are attachments stored? Is that in the header?
Thanks
Posted: Wed Jan 05, 2005 8:22 am
by CoderGoblin
Not sure if outlook can view the full source. Try getting hold og Thunderbird where you can view the entire source.
Posted: Wed Jan 05, 2005 8:39 am
by Chris Corbyn
Cheers... I guess firefox allows that too.
I have it at home but I'm sat at work at the moment so I'll check it when I get in..
I think all this CID stuff may become irrelevant anyway if i can just add a MIME type to Mozilla/netscape so that the correct content type is specified for JAR files instead of application/octet-stream which it is putting down at present. it should but application/x-java-archive.
I'm guessing that this is why mobile phones dont understand the JAR files they are recieving from my email.
Does anyone know if you add a mime-type to the Helper Applications section in the prefs of Mozilla/Netscape does it use those settings when composing mails or just for viewing web content?
I dont have mozilla here at the moment.
Thanks for you r help

Posted: Thu Jan 13, 2005 3:07 am
by CoderGoblin
OK, Mozilla Thunderbird allows you to view all the mime source BUT cid attachments don't work properly. This is a known "Feature"/Bug.
Sorry if the previous post misleads.