EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Removing MIME headers

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#3089
Posted: 06/06/2007 13:06:55
by Ram Cohen (Standard support level)
Joined: 06/28/2006
Posts: 26

I'm using TElMessage.ParseMessage to parse a MIME message and I'm trying to delete one of the message's headers using Message.get_HeaderFields("x-header").Clear()
However, when I do a AssembleMessage the output message contains instead of the original header a line with a ';' in it.
#3090
Posted: 06/06/2007 14:11:09
by Eugene Mayevski (EldoS Corp.)

Clearing a field doesn't remove it.

Use

Code
Message.MainPart.Header.DeleteField("x-header", 0);


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 1301 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!