Fix session.rcpt.script IfBlock variable name
This commit is contained in:
@@ -609,7 +609,7 @@ impl Default for SessionConfig {
|
||||
rewrite: IfBlock::empty("session.mail.rewrite"),
|
||||
},
|
||||
rcpt: Rcpt {
|
||||
script: IfBlock::empty("session.rcpt."),
|
||||
script: IfBlock::empty("session.rcpt.script"),
|
||||
relay: IfBlock::new::<()>(
|
||||
"session.rcpt.relay",
|
||||
[("!is_empty(authenticated_as)", "true")],
|
||||
|
||||
@@ -116,7 +116,7 @@ impl<T: SessionStream> Session<T> {
|
||||
|
||||
if !is_extended {
|
||||
return self
|
||||
.write(format!("250 {} says hello\r\n", self.hostname).as_bytes())
|
||||
.write(format!("250 {} you had me at HELO\r\n", self.hostname).as_bytes())
|
||||
.await;
|
||||
}
|
||||
|
||||
|
||||
@@ -140,10 +140,12 @@ impl<T: SessionStream> Session<T> {
|
||||
script: Arc<Sieve>,
|
||||
params: ScriptParameters<'_>,
|
||||
) -> ScriptResult {
|
||||
let core = self.core.clone();
|
||||
let span = self.span.clone();
|
||||
let params = params.with_envelope(&self.core.core, self).await;
|
||||
|
||||
core.run_script(script, params, span).await
|
||||
self.core
|
||||
.run_script(
|
||||
script,
|
||||
params.with_envelope(&self.core.core, self).await,
|
||||
self.span.clone(),
|
||||
)
|
||||
.await
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user