Clean up changelog, identifiers in format strings
This commit is contained in:
parent
c9b635435f
commit
4800f5102a
3 changed files with 10 additions and 8 deletions
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,5 +1,13 @@
|
|||
# SpamAssassin Milter changelog
|
||||
|
||||
## 0.4.1 (unreleased)
|
||||
|
||||
### Added
|
||||
|
||||
* Add `--synth-relay` option to allow inserting the synthesised internal relay
|
||||
header (the MTA’s `Received` header) at a different position than at the very
|
||||
beginning.
|
||||
|
||||
## 0.4.0 (2023-01-29)
|
||||
|
||||
The minimum supported Rust version is now 1.61.0.
|
||||
|
@ -15,12 +23,6 @@ The minimum supported Rust version is now 1.61.0.
|
|||
|
||||
## 0.3.2 (2022-08-31)
|
||||
|
||||
### Added
|
||||
|
||||
* Add `--synth-relay` option to allow inserting the synthesised internal relay
|
||||
header (the MTA’s `Received` header) at a different position than at the very
|
||||
beginning.
|
||||
|
||||
### Changed
|
||||
|
||||
* The command-line user interface has been reimplemented using a lighter-weight,
|
||||
|
|
|
@ -278,7 +278,7 @@ async fn synthesize_relay_header(config: &Config, macros: &Macros, client: &mut
|
|||
let id = macros.queue_id();
|
||||
|
||||
if config.synth_relay().is_some() {
|
||||
verbose!(config, "{}: inserting synthetic relay header at index {}", id, client.header_count());
|
||||
verbose!(config, "{id}: inserting synthetic relay header at index {}", client.header_count());
|
||||
}
|
||||
|
||||
// Note that when SpamAssassin reports are enabled (`report_safe 1`), the
|
||||
|
|
|
@ -209,7 +209,7 @@ fn parse_args() -> Result<(Socket, Config), Box<dyn Error>> {
|
|||
"--synth-relay" => {
|
||||
let arg = args.next().ok_or_else(missing_value)??;
|
||||
let pos = arg.parse()
|
||||
.map_err(|_| format!("invalid value for synthesized relay header position: \"{}\"", arg))?;
|
||||
.map_err(|_| format!("invalid value for synthesized relay header position: \"{arg}\""))?;
|
||||
|
||||
config = config.synth_relay(pos);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue