Config File


Defines

#define VF_CONF_TO   "to"
#define VF_CONF_FROM   "from"
#define VF_CONF_SUBJECT   "subject"
#define VF_CONF_HOST   "host"
#define VF_CONF_PORT   "port"
#define VF_CONF_LOGFILE   "logfile"
#define VF_CONF_LOGLEVEL   "loglevel"
#define VF_CONF_REPORT   "report"
#define VF_CONF_MAXCONNECTION   "maxconnection"
#define VF_CONF_SENDTIMEOUT   "sendtimeout"
#define VF_CONF_RECVTIMEOUT   "recvtimeout"
#define VF_CONF_TIMEOUT   "timeout"
#define VF_CONF_BULK   "bulk"
#define VF_CONF_NOMESSAGE   "nomessage"
#define VF_CONF_DEBUG   "debug"
#define VF_CONF_FOREGROUND   "foreground"
#define VF_CONF_HEADER   "header"
#define VF_CONF_PRINTLOG   "printlog"

Detailed Description

CONFIGURATION FILE SETTINGS

Veldfire first looks for a .veldfirerc configuration file in the current user's home directory, and then for an /etc/veldfire/veldfire.conf file.

The format of the configuration file should contain a section name, followed by name=value parameters. The section name must be unique within the file, and is contained within braces (eg [section name])

The default section that is looked for is 'veldfire':

 [veldfire]
 from=Jason Armstrong <ja@riverdrums.com>
 ...
 

In this way, different configurations can be used from the same config file. Sections are specified via the -n command line option eg:

$ veldfire -n work (other options)

will look for a section called work:

 [work]
 from=Jason Armstrong <jason@work.com>
 mailhost=192.168.10.1
 ...
 

Settings that can be made in the configuration file.

Multiple 'header' lines are possible. For example:

 header=X-Webpage: http://veldfire.sf.net
 header=X-Library: http://librd.sf.net
 header=X-User: JA Armstrong
 

Define Documentation

#define VF_CONF_BULK   "bulk"
 

Configuration: Bulk Option

Definition at line 88 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_DEBUG   "debug"
 

Configuration: Debug

Definition at line 90 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_FOREGROUND   "foreground"
 

Configuration: Don't fork, run in forground

Definition at line 91 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_FROM   "from"
 

Configuration: From

Definition at line 77 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_HEADER   "header"
 

Configuration: Custom Header

Definition at line 92 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_HOST   "host"
 

Configuration: Host

Definition at line 79 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_LOGFILE   "logfile"
 

Configuration: Logfile

Definition at line 81 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_LOGLEVEL   "loglevel"
 

Configuration: Logleve

Definition at line 82 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_MAXCONNECTION   "maxconnection"
 

Configuration: Max Connection

Definition at line 84 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_NOMESSAGE   "nomessage"
 

Configuration: No message

Definition at line 89 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_PORT   "port"
 

Configuration: Port

Definition at line 80 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_PRINTLOG   "printlog"
 

Configuration: Print logging to stdout

Definition at line 93 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_RECVTIMEOUT   "recvtimeout"
 

Configuration: Recv Timeout

Definition at line 86 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_REPORT   "report"
 

Configuration: Report Email

Definition at line 83 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_SENDTIMEOUT   "sendtimeout"
 

Configuration: Send Timeout

Definition at line 85 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_SUBJECT   "subject"
 

Configuration: Subject

Definition at line 78 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_TIMEOUT   "timeout"
 

Configuration: Timeout

Definition at line 87 of file init.c.

Referenced by __veldfire_configfile().

#define VF_CONF_TO   "to"
 

Configuration: To

Definition at line 76 of file init.c.

Referenced by __veldfire_configfile().

 

 


Jason Armstrong <ja@riverdrums.com>