2022-02-22 04:24:27 +01:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
|
|
|
|
accounts.email.accounts = {
|
|
|
|
"hm@example.com" = {
|
|
|
|
mu.enable = true;
|
|
|
|
aliases = [ "foo@example.com" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.mu.enable = true;
|
|
|
|
|
|
|
|
test.stubs.mu = { };
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileContains activate \
|
|
|
|
'if [[ ! -d "/home/hm-user/.cache/mu" ]]; then'
|
|
|
|
|
|
|
|
assertFileContains activate \
|
2022-11-03 23:01:31 +01:00
|
|
|
'$DRY_RUN_CMD @mu@/bin/mu init --maildir=/home/hm-user/Mail --my-address=hm@example.com --my-address=foo@example.com $VERBOSE_ARG;'
|
2022-02-22 04:24:27 +01:00
|
|
|
'';
|
|
|
|
}
|