MAKEDAT(1) | Double Precision, Inc. | MAKEDAT(1) |
NAME¶
makedat - create GDBM/DB files for maildropSYNOPSIS¶
makedat
{-src= textfile} {-tmp=tmpfile} {-file=gdbmfile}
[-cidr]
DESCRIPTION¶
The gdbm family of functions in maildrop provides access to GDBM/DB databases - simple database files. The gdbm family of functions provide a way of quickly storing and looking up key/data pairs. You can use any program to create GDBM/DB database files. makedat is a quick utility to create GDBM or DB files from plain text files. The system administrator selects whether maildrop uses GDBM or DB database files and whether makedat creates GDBM or DB database files as well. The makedat command may not be available to you. GDBM/DB support in maildrop is optional, and the system administrator may choose not to install GDBM/DB support and the makedat command. To see whether GDBM or DB support is being used, run the command " maildrop -v". The textfile argument to makedat is a plain text file containing key/value pairs. Each line in the text file contains a key value, followed by a tab and a data value. The data value may be omitted, which defaults to "1". For example, the following three lines:example.com domain.com<tab>ok foo.domain.com<tab>bad
BUGS¶
There are historical reasons why database functions in maildrop are called gdbm functions. The initial implementation used GDBM functions exclusively. The ability to use the DB library instead of the GDBM library has been added later.EXAMPLE¶
makedat blacklist /etc/mail/blacklist.tmp /etc/mail/blacklist.dat
SEE ALSO¶
AUTHOR¶
Sam VarshavchikAuthor
NOTES¶
- 1.
- maildrop(1)
[set
$man.base.url.for.relative.links]/maildrop.html
- 2.
- maildropgdbm(5)
[set
$man.base.url.for.relative.links]/maildropgdbm.html
08/30/2011 | Courier Mail Server |