# Class TMessHeader

Description | Hierarchy | Fields | Methods | Properties

## Unit

mimemess

## Declaration

`type TMessHeader = class(TObject)`

## Description

Object for basic e-mail header fields.

## Hierarchy

TMessHeader > TObject

## Methods

### Overview

| `constructor Create; virtual;`
| `destructor Destroy; override;`
| `procedure Clear;`
| `procedure DecodeHeaders(const Value: TStrings);`
| `procedure EncodeHeaders(const Value: TStrings); virtual;`
| `function FindHeader(Value: string): string;`
| `procedure FindHeaderList(Value: string; const HeaderList: TStrings);`

### Description

| `procedure Clear;`

Clears all data fields.

| `constructor Create; virtual;`

| `procedure DecodeHeaders(const Value: TStrings);`

Parse header from Value to this object.

| `destructor Destroy; override;`

| `procedure EncodeHeaders(const Value: TStrings); virtual;`

| `function FindHeader(Value: string): string;`

Try find specific header in CustomHeader. Search is case insensitive. This is good for reading any non-parsed header.

| `procedure FindHeaderList(Value: string; const HeaderList: TStrings);`

Try find specific headers in CustomHeader. This metod is for repeatly used headers like 'received' header, etc. Search is case insensitive. This is good for reading ano non-parsed header.

## Properties

### Overview

| `property CCList: TStringList;`
| `property CharsetCode: TMimeChar;`
| `property CustomHeaders: TStringList;`
| `property Date: TDateTime;`
| `property From: string;`
| `property MessageID: string;`
| `property Organization: string;`
| `property Priority: TMessPriority;`
| `property ReplyTo: string;`
| `property Subject: string;`
| `property ToList: TStringList;`
| `property XMailer: string;`

### Description

| `property CCList: TStringList;`

Stringlist with Carbon Copy receivers of message. (one per line)

| `property CharsetCode: TMimeChar;`

Specify base charset. By default is used system charset.

| `property CustomHeaders: TStringList;`

After decoding contains all headers lines witch not have parsed to any other structures in this object. It mean: this conatins all other headers except:

X-MAILER, FROM, SUBJECT, ORGANIZATION, TO, CC, DATE, MIME-VERSION, CONTENT-TYPE, CONTENT-DESCRIPTION, CONTENT-DISPOSITION, CONTENT-ID, CONTENT-TRANSFER-ENCODING, REPLY-TO, MESSAGE-ID, X-MSMAIL-PRIORITY, X-PRIORITY, PRIORITY

When you encode headers, all this lines is added as headers. Be carefull for duplicites!

| `property Date: TDateTime;`

Date and time of message.

| `property From: string;`

Sender of message.

| `property MessageID: string;`

message indetifier

| `property Organization: string;`

Organization string.

| `property Priority: TMessPriority;`

message priority

| `property ReplyTo: string;`

Address for replies

| `property Subject: string;`

Subject of message.

| `property ToList: TStringList;`

Stringlist with receivers of message. (one per line)

| `property XMailer: string;`

Mailer identification.

Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:18