1
0
mirror of https://github.com/craigerl/aprsd.git synced 2026-06-08 00:54:50 -04:00

Big patch

This commit adds the new send-message command for sending messages.
This also redoes the logging of sent/rx'd packets to a single method
which is syncrhonized, so we don't get intermixed log messages for
packets.

Also adds email address validation during startup, and
optionally disables the validation via a command line switch.  without
email validation for production running aprsd, emails sent can turn up
garbage and cause issues when those emails are received by aprsd
message processing as invalid content.
This commit is contained in:
2020-12-19 16:35:53 -05:00
parent 08c73a17d1
commit fa51f8fdf2
9 changed files with 280 additions and 35 deletions
+2 -1
View File
@@ -19,5 +19,6 @@ class testMain(unittest.TestCase):
"""Test to make sure we fail."""
imap_mock.return_value = None
smtp_mock.return_value = {"smaiof": "fire"}
config = mock.MagicMock()
email.validate_email()
email.validate_email_config(config, True)