Commit graph

93 commits

Author SHA1 Message Date
Rodolphe Bréard
847fbd6213 put project to sleep 2022-01-12 20:00:53 +01:00
Rodolphe Bréard
d9b89beb3f Merge branch 'main' of github.com:breard-r/rust-opensmtpd 2022-01-12 19:59:30 +01:00
Rodolphe Bréard
28e93f0353 Update the Travis-CI configuration 2021-05-10 18:59:37 +02:00
Rodolphe Bréard
a28b8846a2
Merge pull request #5 from breard-r/dependabot/add-v2-config-file
Upgrade to GitHub-native Dependabot
2021-04-30 19:02:59 +02:00
Rodolphe Bréard
e0ab5ca6fa
Merge pull request #4 from breard-r/dependabot/cargo/simplelog-0.10
Update simplelog requirement from 0.9 to 0.10
2021-04-30 19:02:47 +02:00
dependabot-preview[bot]
20493e9dec
Upgrade to GitHub-native Dependabot 2021-04-29 20:13:35 +00:00
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
0fe864e6db Replace the lasts space indents with tabs 2021-02-28 14:10:12 +01:00
Rodolphe Bréard
e83af3d3e5 Switch to tab indentation 2021-02-28 13:56:40 +01:00
Rodolphe Bréard
ecf0ca1191 Rust-OpenSMTPD v0.4.1 2020-12-21 15:43:56 +01:00
Rodolphe Bréard
5f1d45ca0c Add an example to the documentation 2020-12-21 15:43:10 +01:00
Rodolphe Bréard
be1b86905c Tolerate \r and \n inside retured data-lines 2020-12-21 15:31:52 +01:00
Rodolphe Bréard
b15c236da2 Fix the data-line parsing 2020-12-21 15:29:30 +01:00
Rodolphe Bréard
5ad4eba90d Fix the filter registration 2020-12-21 15:28: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
bf6505475c Add documentation 2020-12-21 12:34:57 +01:00
Rodolphe Bréard
6b1b97b455 Add a section about the filters documentation 2020-12-21 11:57:05 +01:00
Rodolphe Bréard
758afdf28c Fix the documentation 2020-12-21 11:07:10 +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
c8ca69923e Go clippy! 2020-12-20 18:02:52 +01:00
Rodolphe Bréard
4598fb33e4 Add the opensmtpd_derive crate 2020-12-20 17:24:08 +01:00
Rodolphe Bréard
d1d51bbaa8 Rust-OpenSMTPD v0.3.0 2020-12-20 15:25:42 +01:00
Rodolphe Bréard
4cbf0d86fd Upgrade the simplelog dev-dependency 2020-12-20 15:23:35 +01:00
Rodolphe Bréard
2070712b50 Add trace logs for handshake registration 2020-12-20 15:10:05 +01:00
Rodolphe Bréard
9fcc02ef5b Register all missing events and filters 2020-12-20 15:01:07 +01:00
Rodolphe Bréard
b33f65fd44 Fix the line buffer that was flooded with extra \0 2020-12-20 14:35:35 +01:00
Rodolphe Bréard
53e5c929ca Render a pretty hexdump in the logs 2020-12-20 14:34:30 +01:00
Rodolphe Bréard
f7edffc6cc Log to a file instead of stderr 2020-12-20 14:31:09 +01:00
Rodolphe Bréard
f7729365e7 Add trace log for each line read 2020-12-20 11:52:56 +01:00
Rodolphe Bréard
5d32a8924c Add some tests 2020-11-28 14:23:15 +01:00
Rodolphe Bréard
1ac792ed6b Add the data-line filter 2020-11-28 12:10:22 +01:00
Rodolphe Bréard
0a4ac5a709 Fix build status 2020-11-26 18:16:54 +01:00
Rodolphe Bréard
8d4d6d9419 Set Rust minimal version to 1.43 2020-11-26 12:20:58 +01:00
Rodolphe Bréard
386d4f3446 Add a minimal documentation 2020-11-25 19:29:33 +01:00
Rodolphe Bréard
dafea54dbb Log exclusively on stderr
OpenSMTPD reads filter responses on stdout, hence there must not be any
log written to this file descriptor.
2020-11-25 18:53:50 +01:00
Rodolphe Bréard
c431d5e9cc Add the Travis CI configuration 2020-11-25 18:48:16 +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
Rodolphe Bréard
fc072743ad
Merge pull request #3 from breard-r/dependabot/cargo/nom-6.0
Update nom requirement from 5.0 to 6.0
2020-11-02 19:19:43 +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
789a41b51e Add the filter proc macro 2019-09-17 20:22:07 +02:00
Rodolphe Breard
2dff22062c Move OpenSmtpdAttributes to a dedicated module 2019-09-17 19:59:06 +02:00
Rodolphe Breard
24c0253f88 Implement the register_events method 2019-09-17 19:38:41 +02:00
Rodolphe Breard
6b532242ef Return an error if end of file is reached on stdin 2019-09-17 17:50:51 +02:00
Rodolphe Breard
dfa61a9eaa Replace .find().is_some() by .any() 2019-09-17 17:45:59 +02:00
Rodolphe Breard
c08c5c0895 Retry read if interrupted
https://doc.rust-lang.org/std/io/trait.Read.html#tymethod.read
2019-09-17 17:43:11 +02:00
Rodolphe Breard
681563934a Reset the "force_read" flag 2019-09-17 17:11:30 +02:00