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 = ''
|
2021-02-07 20:52:16 +00:00
|
|
|
assertFileExists home-files/.getmail/getmailrc
|
|
|
|
assertFileContent home-files/.getmail/getmailrc ${./getmail-expected.conf}
|
2019-05-01 11:32:37 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|