PC Review


Reply
Thread Tools Rate Thread

Problem with sp3 on win2000

 
 
srini2005
Guest
Posts: n/a
 
      3rd Mar 2005
We have intranet site. People post messages to exchange server. Some of
these may have attachments. The dll picks up the messages from exchange
server and display in intranet site. After we applied service pack3 on
exchange server machine (win2000), it is only displaying attachments which
are We have intranet site. People post messages to exchange server. Some of
these may have attachments. The dll picks up the messages from exchange
server and display in intranet site. After we applied service pack3 on
exchange server machine (win2000), it is only displaying attachments which
are pasted in between text(.rtf format in outlook2003), but not attachments
which are attached by using tool bar.

Here I am adding psuedo code dll code also. Can any one please help me.

Thanks in advance,

Srinivasa rao Y



Set objCDO = CreateObject("CDO.Message")

strFolderPath = "http://" & strExchangeServer & "/public/TTIntranet/" &
strSource

objCDO.DataSource.Open (strFolderPath & "/" & strMailPath & "/" &
strMailID), cnnExchange, adModeRead

objCDO.MimeFormatted = True

strMsg = objCDO.HTMLBody



If objCDO.Attachments.Count > 0 Then

strMsg = strMsg & "<table><tr><td class =
'bodytextsmallbold'>Attachments <SPAN class = 'bodytextsmall'>(Click on the
filename(s) below to open in a new browser window)</SPAN></td></tr>"

bFlag = True

For i = 1 To objCDO.Attachments.Count

Set oAttach = objCDO.Attachments(i)



Log ("Source: " & oAttach.Source)

Set collFields = objCDO.Attachments(i).Fields

' get the filename from the content location

sFileName =
objCDO.Attachments(i).Fields("urn:schemas:mailheader:content-location").Valu
e

sFileName = Replace(sFileName, "%20", " ")

' if its an internet based pic...

If InStr(1, sFileName, "http://") Or InStr(1, sFileName,
"https://") Or InStr(1, sFileName, "ftp://") Then

sFileName = objCDO.Attachments(i).FileName

End If



' create the location of the file

sLocation = strFolderPath & "/" & strMailPath & "/" & strMailID
& "/1_multipart/" & sFileName

' if the document is a word doc / text file

' If InStr(1, sFileName, ".doc", vbTextCompare) Or InStr(1,
sFileName, ".xls", vbTextCompare) Then

' sLocation = strFolderPath & "/" & strMailPath & "/" &
strMailID & "/" & sFileName

' ElseIf InStr(1,
objCDO.Attachments(i).Fields("urn:schemas:httpmail:content-media-type"),
"octet-stream", vbTextCompare) Or InStr(1,
objCDO.Attachments(i).Fields("urn:schemas:httpmail:content-media-type"),
"image/", vbTextCompare) Or InStr(1,
objCDO.Attachments(i).Fields("urn:schemas:httpmail:content-media-type"),
"msword", vbTextCompare) Then

If
objCDO.Attachments(i).Fields("urn:schemas:httpmail:content-media-type") <>
"" Then

sLocation = strFolderPath & "/" & strMailPath & "/" &
strMailID & "/" & sFileName

End If

' replace the << filename >> text

strSearch = "&lt;&lt;" & vbCrLf & objCDO.Attachments(i).FileName
& vbCrLf & "&gt;&gt;"

strMsg = Replace(strMsg, strSearch, "", 1, 1)

' build the HREF to be added to the message for the attachement

strHREF = "<tr><td class = 'blacknormallink'> <A class =
'bodytextsmall' style='cursor:hand; text-decoration:underline' onClick =
'javascript:newwin_scrollAttach(" & """" & sLocation & """" & ", 700, 510, "
& """" & "message Attachments" & """" & ");'>" & sFileName &
"</A></td></tr>"

strMsg = strMsg & strHREF

Next

End If


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with sp3 on win2000 srini2005 Microsoft Windows 2000 CMD Promt 0 3rd Mar 2005 04:42 PM
Problem with sp3 on win2000 srini2005 Microsoft Windows 2000 0 3rd Mar 2005 04:38 PM
Does an Add-On exist for Remote Desktop for Win2000->WinXP or WinXP->Win2000 ? Lars Willich Windows XP Networking 2 17th Feb 2005 11:53 PM
Read/Write access problem with a file on Win2000 Server from Win2000 Workstation Greg Doherty Microsoft Windows 2000 Security 3 6th Apr 2004 01:43 PM
problem with direct connection between win98 and win2000 PC (win2000 can see & access win98 and folders, but win98 can't access win2000 PC) Steven L Umbach Microsoft Windows 2000 Networking 1 1st Jan 2004 11:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:40 AM.