Commit graph

4 commits

Author SHA1 Message Date
fox.cpp
aa1804c66d
table: Merge 'replace_sender', 'replace_rcpt' into 'alias'
With 'regexp' and 'static' tables, separate implementations in replace_*
are not necessary.
2020-03-06 04:21:55 +03:00
fox.cpp
305fdddf24
Use context.Context all over the place
It is useful to define background tasks lifetimes more precisely,
especially involving timeouts and other cancellation methods.

On top of that, several tracing facilities are context-based (e.g.
runtime/trace), so it is possible to use them now.
2019-12-13 17:31:35 +03:00
fox.cpp
db98f9dc9d
modify: Make replace_{sender,rcpt} Unicode-aware
While at it, also add Unicode-related tests for alias_file.
2019-12-06 20:09:13 +03:00
fox.cpp
bf188e454f
Move most code from the repo root into subdirectories
The intention is to keep to repo root clean while the list of packages
is slowly growing.

Additionally, a bunch of small (~30 LoC) files in the repo root is
merged into a single maddy.go file, for the same reason.

Most of the internal code is moved into the internal/ directory. Go
toolchain will make it impossible to import these packages from external
applications.

Some packages are renamed and moved into the pkg/ directory in the root.
According to https://github.com/golang-standards/project-layout this is
the de-facto standard to place "library code that's ok to use by
external applications" in.

To clearly define the purpose of top-level directories, README.md files
are added to each.
2019-12-06 01:35:12 +03:00
Renamed from modify/replace_addr.go (Browse further)