GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: mailutils dbm   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.20.12.2 Add Records to a Database

The add subcommand adds records to a database. Records are read from the standard input and must be formatted as for create:

mailutils dbm add file.db

If the argument file does not exist, it will be created.

Adding a record with a key which is already present in the database produces an error. To replace existing records, use the replace subcommand instead.

The same options that affect the behavior of create apply to add and ‘replace’ as well, e.g.:

mailutils dbm replace --file input.txt --copy-permissions file.db