Framework EDI Reference. Constants
Mail Header Type Constants
Mail Header Type Constants identifies the data type of the
internet mail header. The data type
indicates the syntax that the value of the header must follow in order to be
valid.
HeaderType_Date
(0) – Date data type. The
Date type syntax is parsed into the mailDate object.
The
Date type follows the syntax:
Date
Type ::= [<day-of-week> ","] <date> <time>
<day-of-week>
::= “Mon” | “Tue” | “Wed” | “Thu” | “Fri” |
“Sat” | “Sun”
<date>
::= <day> <month> <year>
<day> ::= "01" | "02" | ... |
"31"
<month>
::= "Jan" | "Feb" | "Mar" |
"Apr" | “May" | "Jun" | "Jul" |
"Aug" | "Sep" | "Oct" | "Nov" |
"Dec"
<year>
::= <digit><digit> |
<century><digit><digit>
<century>
::= <digit><digit>
<time> ::= <hour> “:” <minute> [ “:”
<seconds>] <zone>
<hour> ::= "00" | "01" | "02"
| ... | "23"
<minute> ::= "00" | "01" |
"02" | ... | "59"
<seconds> ::= "00" | "01" |
"02" | ... | "59"
<zone> ::= <local-diff> | <zone-str>
<local-diff> ::= < “+” | “-” >
<digit><digit><digit><digit>
<zone-str>
::= "UT" | "GMT” |
"EST” | “EDT” | “CST” | “CDT” | “MST” |
“MDT” | “PST” | “PDT” | <alphabet>
Examples
of Date type syntax:
Mon,
19 Apr 1997 10:32:21 –0600
26
Aug 76 1932 EDT
HeaderType_FieldText
(11) – Text data type.
HeaderType_Parameters
(12) – Parameters data type. The
Parameters syntax is parsed into the mailParameters object:
The
Parameters type follows the syntax:
Parameters
Type ::= <parameter> {“;” <parameter>}
<parameter>
::= <name> “=” <value>
<name>
::= <string>
<value>
::= <string>
Examples
of Parameters type:
US=red,white,blue;
KENYA=red,green,black
Pi=3.14;
boundary=“fredi.boundary.string”
HeaderType_ContentDisposition
(14) – Content disposition type. The Content disposition syntax
is parsed into the mail mailContentDisposition object.
Content disposition follows the syntax:
Disposition ::= "Content-Disposition" ":" <disposition-type> {";"
disposition-parm}
<disposition-type> ::= "inline" | "attachment" | <extension-token>
<disposition-parm> ::= <filename-parm> | <creation-date-parm> | <modification-date-parm> | <read-date-parm> |
<size-parm> | <parameter>
<filename-parm> ::= "filename" "=" <value>
<creation-date-parm> ::= "creation-date" "=" <quoted-date-time>
<modification-date-parm> ::= "modification-date" "=" <quoted-date-time>
<read-date-parm> ::= "read-date" "=" <quoted-date-time>
<size-parm> ::= "size" "=" <digits>
<quoted-date-time> ::= quoted-string
HeaderType_URI
(25) – Uniform resource identifier.