Commit Graph

202 Commits

Author SHA1 Message Date
Tristan B. Kildaire 690e601ab1 Fixed delivery report. 2020-07-20 20:32:57 +02:00
Tristan B. Kildaire bd6c0b6e2a Add mail delivery report printout. 2020-07-20 20:30:19 +02:00
Tristan B. Kildaire 4b28df59f4 Fixed bug whereby the list of failed recipients constructed during mail delivery was not constrcted correctly. 2020-07-20 20:21:45 +02:00
Tristan B. Kildaire c711ad7b19 Add message JSON to the delivery report. 2020-07-20 20:05:16 +02:00
Tristan B. Kildaire 1fcbd5b8f9 Added mail delivery report on failure to delivery to local recipients. 2020-07-20 19:29:13 +02:00
Tristan B. Kildaire b703af686e Cleaned up.
Added documentation.
2020-07-20 19:22:27 +02:00
Tristan B. Kildaire 726e0d2e84 Fixed recipient for mail delivery report 2020-07-20 17:36:13 +02:00
Tristan B. Kildaire 364f5e670f On failed delivery to recipients on remote hosts, generate and send a delivery report to the user. 2020-07-20 17:19:19 +02:00
Tristan B. Kildaire d65077f150 Added code to check whether or not a error delivery message must be sent. 2020-07-18 20:03:29 +02:00
Tristan B. Kildaire b299bd2515 Append the recipient to a list of those whereby mail delivery failed 2020-07-18 19:58:39 +02:00
Tristan B. Kildaire 27ed30a815 Fixed JSON parsing bug in sendMail 2020-07-18 17:39:45 +02:00
Tristan B. Kildaire 0506137e82 Added TODO 2020-07-18 17:38:28 +02:00
Tristan B. Kildaire eaf7caea06 Updated TODO 2020-07-18 17:31:36 +02:00
Tristan B. Kildaire 99d03d63ca Removed debug messages. 2020-07-18 09:37:47 +02:00
Tristan B. Kildaire 90b2a34dd1 Big fixed/ 2020-07-17 21:38:07 +02:00
Tristan B. Kildaire 15f9e363ab One last debug message added. 2020-07-17 21:28:39 +02:00
Tristan B. Kildaire 2774bccfae Added debug message 2020-07-17 21:23:14 +02:00
Tristan B. Kildaire a112517f4c Added debug print 2020-07-17 17:15:23 +02:00
Tristan B. Kildaire 5292264b65 Test 2020-07-17 17:13:34 +02:00
Tristan B. Kildaire 8ecdaed372 Added ebug print for awaiting response after mail delivery. 2020-07-17 17:08:37 +02:00
Tristan B. Kildaire d605591493 Print domain 2020-07-17 16:39:35 +02:00
Tristan B. Kildaire 02db8a8d3d Testing 2020-07-17 16:29:42 +02:00
Tristan B. Kildaire 18aa62d532 Update the domain to be what would be seen on delivery for test cases. 2020-07-17 16:21:40 +02:00
Tristan B. Kildaire a9dcffb929 Use `remoteHost` and `remotePort` fields 2020-07-17 15:12:26 +02:00
Tristan B. Kildaire 04cfdbdde6 Split domain ito hostname and port 2020-07-17 15:07:33 +02:00
Tristan B. Kildaire 7056bd7a23 Added todo 2020-07-17 14:30:09 +02:00
Tristan B. Kildaire 30053478a5 Filtering to be done using bester. 2020-06-21 15:34:45 +02:00
Tristan B. Kildaire 6c3a9dfa41 Fixed bug whereby incoming mail filters did not apply to mail locally inbound. 2020-06-21 15:31:43 +02:00
Tristan B. Kildaire 69a0cabda1 Moved imports up to top of module.
Added field to all outgoing mail, `sendTimestamp`
2020-06-21 15:23:16 +02:00
Tristan B. Kildaire 0c87ba04a1 Added mail filtering subsystem (imcomplete) for outgoing mail as well.
Also moved some of the work that was done in the main command handler for `sendMail` into the `filterMailOutgoing` filter function.
2020-06-21 15:22:29 +02:00
Tristan B. Kildaire aca9c4cc1b Added mail filtering stub. 2020-06-21 15:00:32 +02:00
Tristan B. Kildaire 7578c2938c Append `from` field to outgoing mail message for `sendMail` command. 2020-06-20 23:49:59 +02:00
Tristan B. Kildaire c074dc17c4 Fixed bug where `fetchMail` would fail on incorrect mail path. 2020-06-20 21:28:33 +02:00
Tristan B. Kildaire d81f00e2d7 Error handling WIP 2020-06-20 18:00:17 +02:00
Tristan B. Kildaire dccc4b560d Added try and catch for error handling of command errors and JSON parsing errors. 2020-06-20 16:23:30 +02:00
Tristan B. Kildaire 557e04a0db Close conneciton on failed receive. 2020-06-20 16:17:32 +02:00
Tristan B. Kildaire 767122b969 WIP: Error handling 2020-06-20 16:03:25 +02:00
Tristan B. Kildaire 45d3d98554 Fixed bug where listFolder would crash 2020-06-19 19:12:49 +02:00
Tristan B. Kildaire bb3c0eec88 Implemented command `createFolder` 2020-06-19 18:47:03 +02:00
Tristan B. Kildaire 4c837b8484 Fixed bug whereby the reponse JSON would not be cleared for next command, resulting in extra JSON data being sent for the next commands. 2020-06-19 17:07:13 +02:00
Tristan B. Kildaire 452937dea5 Changed command `listFolder` to `listMail` 2020-06-19 16:05:41 +02:00
Tristan B. Kildaire 5caa99c06f Cleaned up `storeMessage` in mail.d 2020-06-19 13:22:00 +02:00
Tristan B. Kildaire 3929c50aa4 Only print success on actual success.
Added more debug prints.
2020-06-19 13:14:23 +02:00
Tristan B. Kildaire 1e66747307 Daemon now reads configuration parameters from a config file. 2020-06-19 12:53:06 +02:00
Tristan B. Kildaire 0d51e2df74 Added error handling to mail delivery on JSON parsing/handling errors. 2020-06-19 12:43:08 +02:00
Tristan B. Kildaire 6c18eae1dd Added error handling for mail delivery system.
Also read status of remote server after delivering mail.
2020-06-19 12:26:14 +02:00
Tristan B. Kildaire 82e423e26b Added domain to constructor. 2020-06-19 11:17:18 +02:00
Tristan B. Kildaire 94fbb847b6 Fixed JSON bug that crashed mail delivery for remote recipients. 2020-06-18 23:40:02 +02:00
Tristan B. Kildaire cf37a23946 Implemented sendMail command.
Close socket to server when finsihed delivering mail.
2020-06-18 22:56:00 +02:00
Tristan B. Kildaire 90a63aa012 Generate mMail message's filename based off of hash of the message block. 2020-06-18 21:44:34 +02:00