table of contents
conflicting packages
MAILDROPGDBM(7) | Double Precision, Inc. | MAILDROPGDBM(7) |
NAME¶
maildropgdbm - GDBM/DB support in maildropSYNOPSIS¶
gdbmopen(filename, mode) gdbmclose gdbmfetch(key [,default]) gdbmstore(key,value)
DESCRIPTION¶
The gdbm family of functions provides access to the GDBM library - a library of routines that manage simple database files. The library provides a way of quickly storing and looking up key/data pairs. GDBM support in maildrop is optional, and may not be available to you. GDBM support in maildrop can optionally be implemented using the DB library. This option is selected by the system administrator. If this is the case, these functions still work exactly as described below, except that they will operate on DB hash files, instead of GDBM files. To see whether GDBM or DB support is used, run the command " maildrop -v". GDBM support is minimal, and simplistic. A filter file may have only one gdbm file open at the same time. However, the filter file can close the current gdbm file, and open another one. If another filter file is included using the include statement, the included filter file may open its own, separate, gdbm file. A GDBM file contains a list of key/value pairs. All keys in the GDBM file are unique. After storing an arbitrary key/value pair in the GDBM file, the value associated with the given key can be quickly located and retrieved.gdbmclose - close gdbm file¶
gdbmclose
gdbmfetch - retrieve data¶
gdbmfetch ( key [, options] [, default])
gdbmopen - open gdbm file¶
gdbmopen ( file [, mode])
Open this GDBM file for reading.
"W"
Open this GDBM file for reading and writing.
"C"
Open this GDBM file for reading and writing. If the GBDM
file doesn't exist, create it.
"N"
Create a new GDBM file. If the file exists, the existing
file is deleted. The file is opened for reading and writing.
The mode argument defaults to "R" is used. In embedded mode,
only "R" is allowed.
The GDBM library allows multiple processes to read the same GDBM file at the
same time, but it does not allow multiple access when the GDBM file is open
for writing. Using flock[2] or dotlock[3] is
highly recommended.
In delivery mode, maildrop runs from the recipient's home directory. Keep
that in mind while specifying the filename.
The gdbmopen function returns 0 if the GDBM file was successfully opened,
non-zero otherwise.
gdbmstore - store data¶
gdbmstore( key, value)
AUTHOR¶
Sam VarshavchikAuthor
NOTES¶
- 1.
- tolower
[set
$man.base.url.for.relative.links]/maildropfilter.html#tolower
- 2.
- flock
[set
$man.base.url.for.relative.links]/maildropfilter.html#flock
- 3.
- dotlock
[set
$man.base.url.for.relative.links]/maildropfilter.html#dotlock
08/25/2013 | Courier Mail Server |