Don't output preamble

This commit is contained in:
Gonne 2024-11-10 20:43:35 +01:00
parent bbdc7c77d5
commit c28ab701f5

View file

@ -17,7 +17,8 @@ fn main() {
}
fn generate_sieve_script(redirects: BTreeMap<String, Vec<String>>) -> 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");
}
}