body formatting procedures
[MAIN processing library]


Functions

string ParseBody (type args)
 parse the pre-formatted eMail-body into key/value pairs
string CreateBody (type args)
 create an eMail body ready for parsing with ParseBody

Detailed Description

The body of a BID server formatted email is of type text/plain and has the following syntax:
  1. single line string
    ><KEY:data...
    
  2. multi line list
    >KEY
    data...
    data...
    <KEY
    

Function Documentation

string ParseBody ( type  args  ) 

parse the pre-formatted eMail-body into key/value pairs

Parameters:
args argument list as keys required to be available in the body.
Attention:
an error is raised if a required key is not available
Returns:
a list of key/value pairs useable to setup an array using array set

string CreateBody ( type  args  ) 

create an eMail body ready for parsing with ParseBody

Parameters:
args list of arguments as pairs of key/value to create the body.
If only one argument is provided than this argument will be used as list of key/value pairs.


Generated on Thu Sep 13 21:19:10 2007 for bid by  doxygen 1.5.0