added alias-to-sieve to this repository #69

Merged
nerf merged 23 commits from nerf/nixConfig:sieve-script into main 2025-03-27 09:32:50 +00:00
Showing only changes of commit ede3c48ea7 - Show all commits

View file

@ -17,7 +17,8 @@ fn main() {
} }
fn generate_sieve_script(redirects: BTreeMap<String, Vec<String>>) -> String { 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 { for (redirect, mut destinations) in redirects {
script += format!("if envelope :is \"to\" \"{}\" {{\n{}}}\n", redirect, script += format!("if envelope :is \"to\" \"{}\" {{\n{}}}\n", redirect,
{ {