Commit graph

18 commits

Author SHA1 Message Date
dependabot-preview[bot]
e8f99f957d
Update simplelog requirement from 0.9 to 0.10
Updates the requirements on [simplelog](https://github.com/drakulix/simplelog.rs) to permit the latest version.
- [Release notes](https://github.com/drakulix/simplelog.rs/releases)
- [Changelog](https://github.com/Drakulix/simplelog.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/drakulix/simplelog.rs/compare/v0.9.0...v0.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-29 04:26:16 +00:00
Rodolphe Bréard
ecf0ca1191 Rust-OpenSMTPD v0.4.1 2020-12-21 15:43:56 +01:00
Rodolphe Bréard
65f0ce13a6 Add the rm_x-originating-ip example 2020-12-21 15:28:19 +01:00
Rodolphe Bréard
a632035865 Fix the README path 2020-12-20 18:17:32 +01:00
Rodolphe Bréard
0df38c9349 Rust-OpenSMTPD v0.4.0 2020-12-20 18:15:07 +01:00
Rodolphe Bréard
de36a3cf80 Fix the Cargo.toml files 2020-12-20 18:13:30 +01:00
Rodolphe Bréard
4598fb33e4 Add the opensmtpd_derive crate 2020-12-20 17:24:08 +01:00
Rodolphe Bréard
a6d4dd21c1 Rewrite the project
The previous project architecture was far too complicated and hard to
maintain. The new one is much more simple. Although procedural macros
are cools, they are a no-go on Rust-OpenSMTPD.

Reports and filter are implemented (except data-line) but untested.
2020-11-25 18:04:16 +01:00
dependabot-preview[bot]
4447fe2ef9
Update nom requirement from 5.0 to 6.0
Updates the requirements on [nom](https://github.com/Geal/nom) to permit the latest version.
- [Release notes](https://github.com/Geal/nom/releases)
- [Changelog](https://github.com/Geal/nom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Geal/nom/compare/5.0.0...6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-02 04:25:43 +00:00
Rodolphe Breard
fdc8bd3dc4 Add filter-level and session-level contexts 2019-09-18 20:43:46 +02:00
Rodolphe Breard
995c0c35c1 Improve the simple_filter macro
The simple_filter macro must accept the two different levels of
contexts. In the same way, it should also accept the log level, and
therefore replace the now removed simple_filter_log_level macro.
2019-09-18 14:52:21 +02:00
Rodolphe Breard
45639f18c0 Refactor the library
Threads are a bad idea because for now the filter API is not guaranteed
to be state-less. The interface is now synchronous, which should be
enough for most filters.
The refactoring brought other changes, the most important being the
concept of modular input sources and output destination and the complete
rewrite of the procedural macro.
2019-09-17 16:45:04 +02:00
Rodolphe Breard
4a99257263 Upgrading to nom 5 2019-06-29 17:29:52 +02:00
Rodolphe Breard
866298c948 Updating nom to 4.2 2019-03-03 15:23:31 +01:00
Rodolphe Breard
8173cb282a Switch to the MIT or Apache 2.0 license 2019-01-18 19:08:40 +01:00
Rodolphe Breard
ae8b64941e Add a logger
OpenSMTPD plans to gather all logs from filters. Therefore, a default
logger that implements the smtpd (future) log interface has to be
available.
2019-01-17 19:53:04 +01:00
Rodolphe Breard
4b1f99db7e Allow the use of custom context
The main goal of events/reports is to update a context object, which
will be used in filters to generate a response. It is now possible to
use any object implementing both Clone and Default as a context object.
It is also possible to define no context at all.
2019-01-12 23:43:02 +01:00
Rodolphe Breard
789455668c Use procedural macros to define events
The construction of an EventHandler object should not be directly done
by the client. Instead, it is easier to use procedural macro to
automatize the process, hence exposing a nice and simple interface. Such
use of procedural macros requires to crate an additional crate.
2019-01-06 15:41:30 +01:00