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 = {
|
|
|
|
accounts.email.accounts = {
|
2019-10-24 05:40:37 +00:00
|
|
|
"hm@example.com" = {
|
|
|
|
getmail = {
|
|
|
|
enable = true;
|
2020-02-01 23:39:17 +00:00
|
|
|
mailboxes = [ "INBOX" "Sent" "Work" ];
|
2019-10-24 05:40:37 +00:00
|
|
|
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
|
2020-02-01 23:39:17 +00:00
|
|
|
assertFileContent home-files/.getmail/getmailhm@example.com ${
|
|
|
|
./getmail-expected.conf
|
|
|
|
}
|
2019-05-01 11:32:37 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|