Class TMessHeader

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TMessHeader = class(TObject)

Description

Object for basic e-mail header fields.

Hierarchy

Overview

Methods

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

Properties

Published property From: string read FFrom Write FFrom;
Published property ToList: TStringList read FToList;
Published property CCList: TStringList read FCCList;
Published property Subject: string read FSubject Write FSubject;
Published property Organization: string read FOrganization Write FOrganization;
Published property CustomHeaders: TStringList read FCustomHeaders;
Published property Date: TDateTime read FDate Write FDate;
Published property XMailer: string read FXMailer Write FXMailer;
Published property ReplyTo: string read FReplyTo Write FReplyTo;
Published property MessageID: string read FMessageID Write FMessageID;
Published property Priority: TMessPriority read FPriority Write FPriority;
Published property CharsetCode: TMimeChar read FCharsetCode Write FCharsetCode;

Description

Methods

Public constructor Create; virtual;
 
Public destructor Destroy; override;
 
Public procedure Clear; virtual;

Clears all data fields.

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

Parse header from Value to this object.

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

Published property From: string read FFrom Write FFrom;

Sender of message.

Published property ToList: TStringList read FToList;

Stringlist with receivers of message. (one per line)

Published property CCList: TStringList read FCCList;

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

Published property Subject: string read FSubject Write FSubject;

Subject of message.

Published property Organization: string read FOrganization Write FOrganization;

Organization string.

Published property CustomHeaders: TStringList read FCustomHeaders;

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 read FDate Write FDate;

Date and time of message.

Published property XMailer: string read FXMailer Write FXMailer;

Mailer identification.

Published property ReplyTo: string read FReplyTo Write FReplyTo;

Address for replies

Published property MessageID: string read FMessageID Write FMessageID;

message indetifier

Published property Priority: TMessPriority read FPriority Write FPriority;

message priority

Published property CharsetCode: TMimeChar read FCharsetCode Write FCharsetCode;

Specify base charset. By default is used system charset.


Generated by PasDoc 0.9.0 on 2012-04-23 21:38:51