2022-02-22 03:24:27 +00:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
|
|
|
accounts.email.accounts = {
|
|
|
|
"hm@example.com" = {
|
|
|
|
mu.enable = true;
|
|
|
|
aliases = [ "foo@example.com" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.mu.enable = true;
|
|
|
|
|
2023-08-09 16:40:43 +00:00
|
|
|
test.stubs.mu = { name = "mu"; };
|
2022-02-22 03:24:27 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContains activate \
|
|
|
|
'if [[ ! -d "/home/hm-user/.cache/mu" ]]; then'
|
|
|
|
|
|
|
|
assertFileContains activate \
|
2024-01-13 22:15:00 +00:00
|
|
|
'run @mu@/bin/mu init --maildir=/home/hm-user/Mail --my-address=hm@example.com --my-address=foo@example.com $VERBOSE_ARG;'
|
2022-02-22 03:24:27 +00:00
|
|
|
'';
|
|
|
|
}
|