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