lib/libBID.tcl is the main processing library of the BID server.
More...Modules | |
| logging and debugging procedures | |
| mime header related procedures | |
| body formatting procedures | |
| mime context management procedures | |
Functions | |
| 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 | |
lib/libBID.tcl is the main processing library of the BID server.
| variable | string NAME = DEFAULT | set NAME DEFAULT |
| variable | array NAME = DEFAULT | array set NAME DEFAULT |
| procedure | string NAME ( type ARG1, ... ) | proc NAME {ARG1 ...} |
| procedure | string NAME ( optional ARG1=DEF1, ... ) | proc NAME {{ARG1 DEF1} ...} |
| string Exit | ( | optional | num = 0 |
) |
| string Main | ( | ) |
this is the Main processing procedure
| 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
the executable /usr/bin/whoami because it is not garanteed the the tcl variable tcl_platform(user) works
/usr/bin/whoami please change the code to your needs | 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
The procedures Initialize and Finalize are using _GLOBAL_VARS to push the current environment to the stack
| string _GLOBALLIST = [list] |
!private! used to store stack data
1.5.0