#
b613adb4 |
| 14-May-2024 |
op <op@openbsd.org> |
use C99 syntax for filling the table_backend structs; ok gilles@
|
#
d7df8c18 |
| 11-Feb-2024 |
op <op@openbsd.org> |
unify smtpd and makemap table parser
These are supposed to parse the same file format but have subtle difference in the handling of comments, continuation lines and escaping.
Converge both to the s
unify smtpd and makemap table parser
These are supposed to parse the same file format but have subtle difference in the handling of comments, continuation lines and escaping.
Converge both to the simpler smtpd parser which doesn't handle continuation lines nor escaping, and support comments only at the start of the line.
improvements and ok millert@
show more ...
|
#
d3140113 |
| 14-Jun-2021 |
eric <eric@openbsd.org> |
add required headers for smtpd.h and remove unnecessary ones in other files.
ok jung@
|
#
f27a1daa |
| 28-Dec-2018 |
eric <eric@openbsd.org> |
type static tables on the fly when the first element is added
ok gilles@
|
#
d968baab |
| 28-Dec-2018 |
eric <eric@openbsd.org> |
fix logging of list entries
|
#
18236237 |
| 28-Dec-2018 |
eric <eric@openbsd.org> |
use private data structure for managing static table content
ok gilles@
|
#
1cd87e61 |
| 27-Dec-2018 |
eric <eric@openbsd.org> |
table_fetch() always expect a valid dst pointer.
ok gilles@
|
#
5f0e36cc |
| 27-Dec-2018 |
eric <eric@openbsd.org> |
introduce dump() and add() table methods, only implemented for static tables.
ok gilles@
|
#
9a2428ac |
| 27-Dec-2018 |
eric <eric@openbsd.org> |
pass the table pointer to the lookup()/fecth() methods
ok gilles@
|
#
a4c00f8a |
| 27-Dec-2018 |
eric <eric@openbsd.org> |
change the close() method to take the table pointer
ok gilles
|
#
b700b1d8 |
| 27-Dec-2018 |
eric <eric@openbsd.org> |
Make the backend open method return an int to report success. The implementation is responsible for setting the handle pointer as needed.
ok gilles@
|
#
93cc0b04 |
| 26-Dec-2018 |
eric <eric@openbsd.org> |
reorder parameters for consistency
|
#
699c3f98 |
| 26-Dec-2018 |
eric <eric@openbsd.org> |
get rid of the unused dict argument in table lookup and fetch api.
ok gilles@
|
#
4f15e081 |
| 26-Dec-2018 |
eric <eric@openbsd.org> |
move the table backend name in the backend struct. remove unused function.
ok gilles@
|
#
aa0d26b5 |
| 23-Dec-2018 |
eric <eric@openbsd.org> |
Simplify the table backend interface: lookup results are returned as strings, and parsing is handled by the upper layer.
ok gilles@
|
#
81c7fb0a |
| 01-Nov-2018 |
gilles <gilles@openbsd.org> |
introduce K_REGEX table type and table_regex_match(), unused for now
ok eric@
|
#
b80b41af |
| 16-Jun-2018 |
gilles <gilles@openbsd.org> |
rework the table API so that it takes a struct smtpd * context in parameter of functions creating, looking up or destroying tables.
this is a first step in cleaning up parse.y so it doesn't have sid
rework the table API so that it takes a struct smtpd * context in parameter of functions creating, looking up or destroying tables.
this is a first step in cleaning up parse.y so it doesn't have side effects outside of parse_config(), bringing nothing but making code cleaner.
ok millert@
show more ...
|
#
a8e22235 |
| 24-May-2018 |
gilles <gilles@openbsd.org> |
switch smtpd to new grammar
ok eric@
|
#
b7b75d53 |
| 29-Aug-2017 |
eric <eric@openbsd.org> |
Change the table parser logic. If the table is untyped, determine its type by examining the first entry: if it contains a separator, type is "mapping", otherwise type is "list". All entries are then
Change the table parser logic. If the table is untyped, determine its type by examining the first entry: if it contains a separator, type is "mapping", otherwise type is "list". All entries are then parsed according to the table type. The "list" type can also be forced by using the "@list" directive in a comment. This allows to define list of entries containing a separator.
Also, log parse errors.
ok gilles@
show more ...
|
#
3cedc4a5 |
| 14-Aug-2017 |
eric <eric@openbsd.org> |
remove useless indirection for reading the file content
ok gilles@
|
#
27c7fbfb |
| 22-Jan-2016 |
gilles <gilles@openbsd.org> |
add a log_warn() so that when smtpd fails to start due to a problem reading the configuration file of a table, user actually understands what happens
diff by Alexis Vachette, ok jung@
|
#
e459d0ce |
| 28-Dec-2015 |
jung <jung@openbsd.org> |
remove spaces after '!'
no binary change
ok millert
|
#
93262a01 |
| 22-Dec-2015 |
sunil <sunil@openbsd.org> |
Wrap long lines.
Ok gilles@ jung@
|
#
0b2a1b23 |
| 24-Nov-2015 |
gilles <gilles@openbsd.org> |
teach table_db and table_static about mailaddr maps (unused yet)
ok sunil@, ok jung@
|
#
c17c2b51 |
| 11-Oct-2015 |
sunil <sunil@openbsd.org> |
Convert some fgetln to getline.
Ok gilles@, giovanni@, millert@
|