lib/libBID.tcl File Reference


Functions

string Log (type token, type value)
 create a log message using the key/value pair of data
string LogHeader (type args)
 log mime header token/value pair to the logfile
string Print (type args)
 print variable to standard out for debugging
string Error (type message)
 stop the execution with an error and send eMail to SYSADMIN
string Debug (optional token="")
 log debugging message including the whole mime message and the mime header token
string SetHeader (type args)
 set the mime header token token to value
string GetHeader (type token)
 get the token from the mime header
string DelHeader (type args)
 delete list of token from the mime header
string GetFrom ()
 get the eMail address from the the mime header token From
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
string _RawInitialize (type args)
 private command to create a new mime object TOK
string Initialize (type args)
 initialize a new mime object and put the old object on the stack
string Finalize ()
 destroy the mime object available in the global variable TOK
string CallPlugin (type subject)
 call an other service on the same BID server
string SendEmail (type args)
 send out the eMail using the current mime object defined in TOK
string MakeBodyToTXT (type text)
 create a new text/plain mime object using text
string Exit (optional num=0)
 finish the plugin processing and send out eMail
string Main ()
 this is the Main processing procedure

Variables

string TOK = UNKNOWN
 the tcl object mime handle of the eMail, use mime for additional information
array HEADER = {To "" Cc "" Bcc "" From ""}
 the array of all mime header tokens available like To, Cc, Bcc, From, Subject
string ID = UNKNOWN
 the name of the plugin used to handle this business case
string LSUB = [list]
 the list of all parts of the Subject split with @ including the ID on the first position
string SUB = UNKNOWN
 the original subject of the eMail (everything after the first @)
string HOST = [string tolower [info hostname]]
 the current local hostname
string USER = [exec /usr/bin/whoami]
 the current local user-name
string _GLOBAL_VARS = [list TOK ID LSUB SUB HOST SEND DEBUG SYSMAIL SYSADMIN SYSGROUP SYSGROUPNAME sendType APPMAILRELAY APPMAILHOST SPAM_INTERVALL SPAM_ID DEV_HOST]
 !private! all global variables used
string _GLOBALLIST = [list]
 !private! used to store stack data

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