Hunny Software Library Reference

Stamp Class

Class that represents the field body of a "Received" header field.

For a list of all members of this type, see Stamp Members.

System.Object
   Node
      FieldBody
         Stamp

[Visual Basic]
Public Class Stamp
Inherits FieldBody
[C#]
public class Stamp : FieldBody

Remarks

Stamp represents a field body for the "Received" header field as described in RFC 2821 and RFC 2822. (RFC 2821 uses the term time stamp to describe the contents of the "Received" header field.) One "Received" header field is normally added by every host that relays a message through the transport system, as required by SMTP. The field includes a time stamp indicating the time that the message was received at the host, and possibly other information.

The "Received" header field provides information that may be helpful in resolving mail delivery problems. In practice, though, the most recent time stamp is often used by email client applications to obtain the time that the message was received by that client's mail server. The other information provided in the "Received" header field is optional and inconsistent between implementations. Some implementations do not provide much of the optional information, while other implementations provide it in non-standard forms.

The following is a sample time stamp line, which shows all the optional information:

    Received: from xyz.net by mx.org via TELENET with SMTP
                   id M12345 for smith@aol.com ; Tue, 6 Oct 1998 09:23:59 -0700

Stamp provides access to all the information provided in a "Received" header field body, including sending host ("xyz.net"), receiving host ("mx.org"), physical mechanism ("TELENET"), protocol ("SMTP"), internal message identifier ("M12345"), original addressee ("smith@aol.com"), and date/time the message was received ("Tue, 6 Oct 1998 09:23:59 -0700"). If an optional field is not present, then the property for that field returns an empty string.

Stamp follows the protocol for Parse() and Assemble() as required by Node.

Note: Because of inconsistencies in many server implementations, the parsing may not be reliable enough for applications to depend on. The only parsed information that you should probably rely on is the final date/time stamp. RFC 2821 suggests that the "Received" header field is intended mostly for inspection by mail system administrators to resolve mail delivery problems.

Requirements

Namespace: Hunny.Mime

Assembly: Hunny.Mime (in Hunny.Mime.dll)

See Also

Stamp Members | Hunny.Mime Namespace