2019-05-01 11:32:37 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2020-01-26 11:00:03 +00:00
|
|
|
imports = [ ../../accounts/email-test-accounts.nix ];
|
2019-05-01 11:32:37 +00:00
|
|
|
|
|
|
|
config = {
|
|
|
|
home.username = "hm-user";
|
|
|
|
home.homeDirectory = "/home/hm-user";
|
|
|
|
|
|
|
|
accounts.email.accounts = {
|
2019-10-24 05:40:37 +00:00
|
|
|
"hm@example.com" = {
|
|
|
|
getmail = {
|
|
|
|
enable = true;
|
|
|
|
mailboxes = ["INBOX" "Sent" "Work"];
|
|
|
|
destinationCommand = "/bin/maildrop";
|
|
|
|
delete = false;
|
|
|
|
};
|
|
|
|
imap.port = 993;
|
2019-05-01 11:32:37 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.getmail/getmailhm@example.com
|
|
|
|
assertFileContent home-files/.getmail/getmailhm@example.com ${./getmail-expected.conf}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|