outlook - Exchange CDO library corrupts Content-Disposition field in SMTP messages -
we using cdo + vbscript adding text outgoing smtp messages via event sink on exchange 2003.
we have found if message contains attachment save method corrupts content-disposition field removing quotes around creation-date , modification-date attributes.
this content-disposition field before saving. creation-date , modification-date quoted.
content-disposition: attachment; filename="desktop.ini"; size=402; creation-date="wed, 30 oct 2013 14:17:14 gmt"; modification-date="wed, 30 oct 2013 14:17:14 gmt"
this content-disposition after saving message. there no quotes anymore around date fields.
content-disposition: attachment; filename="desktop.ini"; size=402; creation-date=wed, 30 oct 2013 14:17:14 gmt; modification-date=wed, 30 oct 2013 14:17:14 gmt
this simple script used test behaviour.
<script language="vbscript"> sub ismtponarrival_onarrival(byval omsg, istatus) omsg.datasource.save end sub </script>
the quotes removed if try add quotes rewriting creation-date field follows.
creationdate = "creation-date=" & chr(34) & "wed, 30 oct 2013 14:17:14 gmt" & chr(34)
is bug in cdo?
are there workarounds possible except removing creation-date , modification-date completely?
Comments
Post a Comment