Indy 9
TMINFORecord
Hierarchy, Properties, Methods, Unit: IdDNSResolver
Represents a resource record returned from a DNS query that includes mailbox or mailing list resource record types.
TMINFORecord = class(TResultRecord)
Unit
IdDNSResolver
Description
TMINFORecord is a TResultRecord descendant that represents a resource record returned in the results for a DNS query. TMINFORecord is a collection item created to represent a resource record returned when TIDNSResolver.QueryRecords includes the value qtMINFO for Mailbox Information resource records.

MINFO resource records are an experimental record type used to represent mailbox addresses for both the maintainer and error logging facilities for a mailing list or email address specified in the owner.

An MINFO resoure record uses the same DNS packet layout as other TResultRecord-based responses, but extends the use of RData to include the following definition and format:

  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  |                                               |
  .                                               .
  .                    RMAILBX                    .
  .                                               .
  |                                               |
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
  |                                               |
  .                                               .
  .                    EMAILBX                    .
  .                                               .
  |                                               |
  +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

  • RMAILBX - Domain name which specifies a mailbox which is responsible for the mailing list or mailbox. If this domain name names the root, the owner of the MINFO Resource Record is responsible for itself. Many existing mailing lists use a mailbox X-request for the RMAILBX field of mailing list X, e.g., Msgroup-request for Msgroup. This field provides a more general mechanism.

  • EMAILBX - Domain name which specifies a mailbox used to receive error messages related to the mailing list or mailbox specified by the owner of the MINFO Resource Record (similar to the ERRORS-TO: field which has been proposed). If this domain name names the root, errors should be returned to the sender of the message.

Although MINFO resource record can be associated with a simple mailbox, they are usually used with a mailing list address.

TMINFORecord extends TTextRecord to implement the specifics of accessing RData values as properties, including ResponsiblePersoneMailbox and ErrorMailbox. TMINFORecord also overrides the Parse method to read the values in RData into their property counterparts.


TMINFORecord.ErrorMailbox
TMINFORecord
Indicates the email address for reporting error messages for the mailbox or mailing list.
property ErrorMailbox: String;
Description
ErrorMailbox is a read-only String property that represents the email address used to receive error messages related to the mailing list or mailbox specified by the owner of the Resource Record. If the domain name for the Resouce Record is the root, errors should be returned to the sender of the message. ErrorMailbox is read from RData values in the Resource Record in Parse.

TMINFORecord.ResponsiblePersonMailbox
TMINFORecord, See Also
Identifies the email address for the person that maintains a mailbox or mailinglist.
property ResponsiblePersonMailbox: String;
Description
ResponsiblePersonMailbox is a read-only String property that represents the email address for a person responsible for maintaining another email address or mailing list. ResponsiblePersonMailbox is read from the RData values for the resource record in Parse.

TMINFORecord.Parse
TMINFORecord
Parses RData values into properties.
procedure Parse(CompleteMessage: String; APos: Integer); override;
Parameters
CompleteMessage: String
Contents of the resource record.
APos: Integer
Position where RData values begin in the answer.
Description
Parse is an overridden procedure that implements a routine to parse resource record values in the DNS response into their property-based counterparts.

CompleteMessage is the contents of the resource record. Since the DNS message can contain compressed data, the whole message is needed for parsing and pointer location.

APos is the position in the resource record where RData values for this record type are located in the DNS Answer.

Parse calls the inherited Parse method, and retrieves the DNS labels and values for the ResponsiblePersone and ErrorMailbox properties.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.