72904c318c
GitOrigin-RevId: 9bf1f40af124573a54fd208b1f539eb694ef31a6
28 lines
601 B
Nix
28 lines
601 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
|
|
|
config = {
|
|
accounts.email.accounts = {
|
|
"hm@example.com" = {
|
|
getmail = {
|
|
enable = true;
|
|
mailboxes = [ "INBOX" "Sent" "Work" ];
|
|
destinationCommand = "/bin/maildrop";
|
|
delete = false;
|
|
};
|
|
imap.port = 993;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.getmail/getmailhm@example.com
|
|
assertFileContent home-files/.getmail/getmailhm@example.com ${
|
|
./getmail-expected.conf
|
|
}
|
|
'';
|
|
};
|
|
}
|