Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Distinct VIT: MIME Control: MessageType

   Products   Downloads   Sales   Support   About us
  VIT



        
 

Summary

External or partial MIME message.

Description

The MessageType property must be set for a partial or external MIME message. The following values can be assigned to the MessageType property.

Value Meaning
MESSAGE_NONE None.
MESSAGE_EXTERNAL External message.
MESSAGE_PARTIAL Partial message.

A partial message is a MIME message whose ContentType is "message" and Subtype is "partial". This is generally used to send very large files in many parts. The various parts will be reassembled on the receiving end. If the application is creating a partial message, then the MessageType must be set to MESSAGE_PARTIAL. The OnPartial event will be fired to obtain the information for the partial message. The OnPartial event will be fired only if the MessageType property is set. A partial message cannot be a body part of a multipart message.

An external message is a MIME message whose ContentType is "message" and Subtype is "external-body". This is generally used to reference an external data source. The actual data is not included in the body part. If the application is creating an external message, then the MessageType must be set to MESSAGE_EXTERNAL. The OnExternal event will be fired to obtain the information for the external message. The OnExternal event will be fired only if the MessageType property is set.

If the external message is part of a multipart message, then MessageType property must be set to MESSAGE_EXTERNAL inside the OnSetHeader event (or deprecated OnHeader event) for that attachment and then reset to MESSAGE_NONE immediately. These events will occur during the create message process, initiated by calling the CreateMessage method (or the deprecated Create or CreateX method, or setting the corresponding Action property).

This property is set by the OnRecvHeader in the message extraction process initiated by calling the ExtractMessageEnd method (and it is also set by the deprecated OnExtract event that occurs after calling the Extract or ExtractX method).

The External and Partial methods can also be used to set the message type. Please check the reference pages of these methods for more detailed information on their usage.

This property can be changed at design time and at run time before creating a message. The default value for this property is MESSAGE_NONE.

Example

Private Sub MIME_OnSetHeader(Info As String, Length As Integer, Status As Integer)
Mime.ContentType = "message"
Mime.SubType = "partial"
Mime.MessageType = MESSAGE_PARTIAL
Mime.Encoding = ""
.
.
End Sub



Browse FAQ

Related Products
Mail Objects

Recommended Add-On
Network Monitor,
Protocol Analyzer


Raves
"The night before I went on summer holiday we had to make some 'last minute' configuration changes to approx. 300 routers, a tedious job to do manually with telnet. We went along with MS Excel containing a list of IP-adresses to the routers, and the VIT telnet-component. One hour later the VBA-application (small is beautiful) was working, and after another hour all of our routers were updated with the new configuration. I just say a big "Thanks" to you all for a good sleep that night."
Eirik Brendholen, Ergo Integration AS

"We conducted a test session to compare the performance of similar products, and Distinct's product was better!" [more]
Dr. Shyam Sunder, Carnegie Mellon University

"Together with Distinct, we were able to offer our users an ideal soution to enabling them to connect to Yahoo! Pager, and to do so both quickly and reliably." [more]
Brian Park,
Producer of Yahoo! Pager, Yahoo! Inc.


  8/28/2008   Legal notices | PRIVACY Policy | Networking News |