|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Postmap
From: Wietse Venema (wietse
porcupine.org)
Date: Fri Aug 01 2003 - 12:32:17 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Chateauneuf:
> >From regexp_table:
>
> postmap -q "string" regexp:/etc/postfix/filename
>
> What does "string" refer to? Is this "Nfinorvw" or something else?
POSTMAP(1) POSTMAP(1)
...
-q key Search the specified maps for key and print the
first value found on the standard output stream.
> postmap -q - regexp:/etc/postfix/filename <inputfile
>
> "<inputfile" is undocumented here and on the Man page. What does that
> mean?
POSTMAP(1) POSTMAP(1)
...
If a key value of - is specified, the program reads
key values from the standard input stream and
prints one line of key value output for each key
that was found.
On UNIX systems one uses <filename in order to redirect the
input stream to the named file.
> Moreover, the Man page does not provide a file type or syntax for input
POSTMAP(1) POSTMAP(1)
...
The format of a lookup table input file is as follows:
o A table entry has the form
key whitespace value
o Empty lines and whitespace-only lines are ignored,
as are lines whose first non-whitespace character
is a `#'.
o A logical line starts with non-whitespace text. A
line that starts with whitespace continues a logi-
cal line.
The key and value are processed as is, except that sur-
rounding white space is stripped off. Unlike with Postfix
alias databases, quotes cannot be used to protect lookup
keys that contain special characters such as `#' or
whitespace. The key is mapped to lowercase to make mapping
lookups case insensitive.
> and the output type is limited to db, dbm and hash.
Right. All other database types are read-only, so producing
output is not going to be possible.
Wietse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]