Class TMessHeader

DescriptionHierarchyFieldsMethodsProperties

Unit

mimemess

Declaration

type TMessHeader = class(TObject)

Description

Object for basic e-mail header fields.

Hierarchy

TMessHeader > TObject

Methods

Overview

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

Description

Public procedure Clear;

Clears all data fields.

Public constructor Create; virtual;

 

Public procedure DecodeHeaders(const Value: TStrings);

Parse header from Value to this object.

Public destructor Destroy; override;

 

Public procedure EncodeHeaders(const Value: TStrings); virtual;

 

Public function FindHeader(Value: string): string;

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

Public 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

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

Description

Published property CCList: TStringList;

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

Published property CharsetCode: TMimeChar;

Specify base charset. By default is used system charset.

Published 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!

Published property Date: TDateTime;

Date and time of message.

Published property From: string;

Sender of message.

Published property MessageID: string;

message indetifier

Published property Organization: string;

Organization string.

Published property Priority: TMessPriority;

message priority

Published property ReplyTo: string;

Address for replies

Published property Subject: string;

Subject of message.

Published property ToList: TStringList;

Stringlist with receivers of message. (one per line)

Published property XMailer: string;

Mailer identification.


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