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