Function EN Version 10.10

@RFC822Get

Misc Note RFC822

Syntax

@RFC822Get(RFC822;FNSEGMENTNR;RETFLAGS;RETNOTESNATIVEBODY;RETORGBODY;RETFIELDNAME;RETDELIMITOR);

Description

Returns information about an RFC822 segment of VHUGERFC822 RFC822.

FN FNSEGMENTNR:
Segment number of the segment whose information is requested. Counting starts at 1.

Return FN RETFLAGS:
This parameter returns the flags and the data type of the segment.

Flag   Hex   Dec   Kommentar
RFC822_ITEM_FORMAT_ADDR   0000   00000   Type: 822-header is an address
RFC822_ITEM_FORMAT_DATE   0001   00001   Type: 822-header is a date
RFC822_ITEM_FORMAT_TEXT   0002   00002   Type: 822-header is text
RFC822_ITEM_STORAGE_STRICT   0008   00008   Flag: STRICT storage format
RFC822_ITEM_TEXT_LIST   0010   00016   Flag: Text item is TEXT_LIST

Return TEXT RETNOTESNATIVEBODY:
The body of the segment in LMBCS.

Return TEXT RETORGBODY:
The original body of the segment in its original character set, usually UTF-8.

Return TEXT RETFIELDNAME:
The original field name for this segment in its original character set, usually UTF-8.

Return TEXT RETDELIMITOR:
The original delimiter for this segment.

The function returns TRUE on success; otherwise, it returns @Error.

Example: @RFC822Get(RFC822;FNSEGMENTNR;RETFLAGS;RETNOTESNATIVEBODY;RETORGBODY;RETFIELDNAME;RETDELIMITOR);

/*Create an RFC822 field:*/
RFC822:=@HugeRFC822;
RFC822:=@RFC822Add(RFC822;10;"Some notes native subject";"Org subject";"Subject";":");

FNSEGMENTNR:=1;
Ret:=@RFC822Get(RFC822;FNSEGMENTNR;RETFLAGS;RETNOTESNATIVEBODY;RETORGBODY;RETFIELDNAME;RETDELIMITOR);
@LogReport(RETFLAGS);
@LogReport(RETNOTESNATIVEBODY);
@LogReport(RETORGBODY);
@LogReport(RETFIELDNAME);
@LogReport(RETDELIMITOR);

An RFC822 field for a Subject is created, and the data of the first segment is retrieved again using @RFC822Get and output to the APILOG.

Note : This text was machine-translated and may contain inaccuracies.