lieer: change settings to freeform type

Also add missing options.
This commit is contained in:
Tad Fisher 2021-03-22 17:12:02 -07:00 committed by Robert Helgesson
parent 4b964d2f7b
commit 514acaebb9
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
6 changed files with 241 additions and 123 deletions

View file

@ -1 +1,18 @@
{"account":"hm@example.com","drop_non_existing_label":false,"ignore_remote_labels":["CATEGORY_FORUMS","CATEGORY_PROMOTIONS","CATEGORY_UPDATES","CATEGORY_SOCIAL","CATEGORY_PERSONAL"],"ignore_tags":[],"replace_slash_with_dot":false,"timeout":0}
{
"account": "hm@example.com",
"drop_non_existing_label": false,
"file_extension": "",
"ignore_empty_history": false,
"ignore_remote_labels": [
"CATEGORY_FORUMS",
"CATEGORY_PROMOTIONS",
"CATEGORY_UPDATES",
"CATEGORY_SOCIAL",
"CATEGORY_PERSONAL"
],
"ignore_tags": [],
"local_trash_tag": "trash",
"remove_local_messages": true,
"replace_slash_with_dot": false,
"timeout": 600
}

View file

@ -7,6 +7,7 @@ with lib;
config = {
programs.lieer.enable = true;
programs.lieer.package = pkgs.writeScriptBin "dummy-gmailieer" "";
accounts.email.accounts."hm@example.com" = {
flavor = "gmail.com";
@ -14,14 +15,11 @@ with lib;
notmuch.enable = true;
};
nixpkgs.overlays = [
(self: super: { gmailieer = pkgs.writeScriptBin "dummy-gmailieer" ""; })
];
nmt.script = ''
assertFileExists home-files/Mail/hm@example.com/.gmailieer.json
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json \
${./lieer-expected.json}
assertFileContent home-files/Mail/hm@example.com/.gmailieer.json ${
./lieer-expected.json
}
'';
};
}