~ubuntu-branches/ubuntu/saucy/postfix/saucy

« back to all changes in this revision

Viewing changes to src/global/dict_mysql.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2011-02-22 11:20:43 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20110222112043-c34ht219w3ybrilr
Tags: 2.8.0-2
* a little more lintian cleanup
* Fix missing format strings in smtp-sink.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
/*      main.cf configuration parameters for this search.
32
32
/*
33
33
/*      In the first case, the configuration parameters below are
34
 
/*      specified in the file as \fIname\fR=\fBvalue\fR pairs.
 
34
/*      specified in the file as \fIname\fR=\fIvalue\fR pairs.
35
35
/*
36
36
/*      In the second case, the configuration parameters are
37
37
/*      prefixed with the value of \fIname\fR and an underscore,
47
47
/*      See dict_open(3).
48
48
/* .PP
49
49
/*      Configuration parameters:
50
 
/*
51
 
/*      The parameters encodes a number of pieces of information:
52
 
/*      username, password, databasename, table, select_field,
53
 
/*      where_field, and hosts:
54
 
/* .IP \fIuser\fR
 
50
/* .IP user
55
51
/*      Username for connecting to the database.
56
 
/* .IP \fIpassword\fR
 
52
/* .IP password
57
53
/*      Password for the above.
58
 
/* .IP \fIdbname\fR
 
54
/* .IP dbname
59
55
/*      Name of the database.
60
 
/* .IP \fIdomain\fR
 
56
/* .IP domain
61
57
/*      List of domains the queries should be restricted to.  If
62
58
/*      specified, only FQDN addresses whose domain parts matching this
63
59
/*      list will be queried against the SQL database.  Lookups for
64
60
/*      partial addresses are also supressed.  This can significantly
65
61
/*      reduce the query load on the server.
66
 
/* .IP \fIquery\fR
 
62
/* .IP query
67
63
/*      Query template, before the query is actually issued, variable
68
64
/*      substitutions are performed. See mysql_table(5) for details. If
69
65
/*      No query is specified, the legacy variables \fItable\fR,
70
66
/*      \fIselect_field\fR, \fIwhere_field\fR and \fIadditional_conditions\fR
71
67
/*      are used to construct the query template.
72
 
/* .IP \fIresult_format\fR
 
68
/* .IP result_format
73
69
/*      The format used to expand results from queries.  Substitutions
74
70
/*      are performed as described in mysql_table(5). Defaults to returning
75
71
/*      the lookup result unchanged.
78
74
/*      exceed the limit fail with dict_errno=DICT_ERR_RETRY. Note that each
79
75
/*      non-empty (and non-NULL) column of a multi-column result row counts as
80
76
/*      one result.
81
 
/* .IP \fItable\fR
 
77
/* .IP table
82
78
/*      When \fIquery\fR is not set, name of the table used to construct the
83
79
/*      query string. This provides compatibility with older releases.
84
 
/* .IP \fIselect_field\fR
 
80
/* .IP select_field
85
81
/*      When \fIquery\fR is not set, name of the result field used to
86
82
/*      construct the query string. This provides compatibility with older
87
83
/*      releases.
88
 
/* .IP \fIwhere_field\fR
 
84
/* .IP where_field
89
85
/*      When \fIquery\fR is not set, name of the where clause field used to
90
86
/*      construct the query string. This provides compatibility with older
91
87
/*      releases.
92
 
/* .IP \fIadditional_conditions\fR
 
88
/* .IP additional_conditions
93
89
/*      When \fIquery\fR is not set, additional where clause conditions used
94
90
/*      to construct the query string. This provides compatibility with older
95
91
/*      releases.
96
 
/* .IP \fIhosts\fR
 
92
/* .IP hosts
97
93
/*      List of hosts to connect to.
98
94
/* .PP
99
95
/*      For example, if you want the map to reference databases of
104
100
/*      "vmailer" and password "passwd" then the configuration file
105
101
/*      should read:
106
102
/* .PP
107
 
/*      \fIuser\fR = \fBvmailer\fR
108
 
/* .br
109
 
/*      \fIpassword\fR = \fBpasswd\fR
110
 
/* .br
111
 
/*      \fIdbname\fR = \fBvmailer_info\fR
112
 
/* .br
113
 
/*      \fItable\fR = \fBaliases\fR
114
 
/* .br
115
 
/*      \fIselect_field\fR = \fBforw_addr\fR
116
 
/* .br
117
 
/*      \fIwhere_field\fR = \fBalias\fR
118
 
/* .br
119
 
/*      \fIhosts\fR = \fBhost1.some.domain\fR \fBhost2.some.domain\fR
120
 
/* .IP \fIadditional_conditions\fR
 
103
/*      user = vmailer
 
104
/* .br
 
105
/*      password = passwd
 
106
/* .br
 
107
/*      dbname = vmailer_info
 
108
/* .br
 
109
/*      table = aliases
 
110
/* .br
 
111
/*      select_field = forw_addr
 
112
/* .br
 
113
/*      where_field = alias
 
114
/* .br
 
115
/*      hosts = host1.some.domain\fR \fBhost2.some.domain
 
116
/* .IP additional_conditions
121
117
/*      Backward compatibility when \fIquery\fR is not set, additional
122
118
/*      conditions to the WHERE clause.
123
 
/* .IP \fIhosts\fR
 
119
/* .IP hosts
124
120
/*      List of hosts to connect to.
125
121
/* .PP
126
122
/*      For example, if you want the map to reference databases of
131
127
/*      "vmailer" and password "passwd" then the configuration file
132
128
/*      should read:
133
129
/* .PP
134
 
/*      \fIuser\fR = \fBvmailer\fR
135
 
/* .br
136
 
/*      \fIpassword\fR = \fBpasswd\fR
137
 
/* .br
138
 
/*      \fIdbname\fR = \fBvmailer_info\fR
139
 
/* .br
140
 
/*      \fItable\fR = \fBaliases\fR
141
 
/* .br
142
 
/*      \fIselect_field\fR = \fBforw_addr\fR
143
 
/* .br
144
 
/*      \fIwhere_field\fR = \fBalias\fR
145
 
/* .br
146
 
/*      \fIhosts\fR = \fBhost1.some.domain\fR \fBhost2.some.domain\fR
 
130
/*      user = vmailer
 
131
/* .br
 
132
/*      password = passwd
 
133
/* .br
 
134
/*      dbname = vmailer_info
 
135
/* .br
 
136
/*      table = aliases
 
137
/* .br
 
138
/*      select_field = forw_addr
 
139
/* .br
 
140
/*      where_field = alias
 
141
/* .br
 
142
/*      hosts = host1.some.domain\fR \fBhost2.some.domain
147
143
/* .PP
148
144
/* SEE ALSO
149
145
/*      dict(3) generic dictionary manager