[PREVIOUS CHAPTER]
[NEXT CHAPTER]
1 Examples of header manipulation
1.1 rewrite subject
MENU -> HEADER_CONFIG -> SUBJECT_TAG_TYPE
MENU -> HEADER_CONFIG -> SUBJECT_TAG_FIGURE
1.2 copy header fields
©_FIELD(src, dst);
©_FIELD('Sender', 'X-Sender');
1.3 enforce the value for a header field
&DEFINE_FIELD_FORCED(fieldname, value);
For example:
&DEFINE_FIELD_FORCED("reply-to", "$From_address, $MAIL_LIST");
1.4 remove a header field
&DELETE_FIELD(fieldname);
For example:
&DELETE_FIELD('X-Uja');
1.5 pass through a field
&DEFINE_FIELD_ORIGINAL(fieldname);
For example:
&DEFINE_FIELD_ORIGINAL('reply-to');
1.6 set up the value for command reply message
&DEFINE_FIELD_OF_REPORT_MAIL(fieldname, value);
&DEFINE_FIELD_OF_REPORT_MAIL('Reply-To', "Your Reply-To Address");
. pass through the whole header (by default)
. pass through the whole header (by default)
$PASS_ALL_FIELDS_IN_HEADER = 1;
1.8 order of header fields
@HdrFieldsOrder defines the order of header fields.
2 other topics
2.1 filtering by header
&DEFINE_FIELD_PAT_TO_REJECT('subject', '/FREE|SEX|ADULT|XXX/');
[PREVIOUS CHAPTER]
[NEXT CHAPTER]