@RFC822Add
Syntax
@RFC822Add(RFC822;FLAGS;NOTESNATIVEBODY;ORGBODY;FIELDNAME;DELIMITOR);
Description
Adds another segment to an RFC822 field.
VHUGERFC822 RFC822:
The RFC822 field to which the segment is to be added. An empty VHUGERFC822 RFC822 can be created using @HugeRFC822.
FN FLAGS:
The flags for this segment, or the data type of the field.
The available flags are:
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
TEXT NOTESNATIVEBODY:
The body of the segment in LMBCS.
TEXT ORGBODY:
The body of the segment in an RFC822-compliant character set, usually UTF-8.
TEXT FIELDNAME:
The field name for this segment in an RFC822-compliant character set, usually UTF-8.
TEXT DELIMITOR:
The delimiter for this segment.
On success, the function returns the extended VHUGERFC822 RFC822; otherwise, it returns @Error.
Example: @RFC822Add(RFC822;FLAGS;NOTESNATIVEBODY;ORGBODY;FIELDNAME;DELIMITOR);
/*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.
