From c28ab701f5d1a4f3364f43d147359c23698420b1 Mon Sep 17 00:00:00 2001 From: Gonne Date: Sun, 10 Nov 2024 20:43:35 +0100 Subject: [PATCH] Don't output preamble --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 763f97e..9b32738 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,7 +17,8 @@ fn main() { } fn generate_sieve_script(redirects: BTreeMap>) -> String { - let mut script : String = "require [\"envelope\", \"copy\"];\n\n".to_string(); +// let mut script : String = "require [\"envelope\", \"copy\"];\n\n".to_string(); + let mut script : String = "".to_string(); for (redirect, mut destinations) in redirects { script += format!("if envelope :is \"to\" \"{}\" {{\n{}}}\n", redirect, { @@ -85,4 +86,4 @@ fn to_mailaddress(local_part: &str, default_domain : &str) -> String { fn print_help(){ print!("Reads a virtual alias file from STDIN and needs a default domain to append to local paths, e.g. cat virt_aliases | ./alias_to_sieve example.com"); -} \ No newline at end of file +}