diff options
author | Christian Hesse <mail@eworm.de> | 2022-09-23 15:01:03 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-09-25 18:44:14 +0200 |
commit | 562c565fcf10fff454e82bd3eb718f6b4cbc5a1d (patch) | |
tree | 3e59b22073fa58bf6c138347d77b33b89f857b19 /global-functions | |
parent | a05b8c18813e1b31dfee79c199953854ec4b67bc (diff) |
global-functions: $FlushEmailQueue: do not flush if sending
Diffstat (limited to 'global-functions')
-rw-r--r-- | global-functions | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/global-functions b/global-functions index 3f7a65e..a93b883 100644 --- a/global-functions +++ b/global-functions @@ -330,6 +330,11 @@ :local AllDone true; :local QueueLen [ :len $EmailQueue ]; + :if ([ /tool/e-mail/get last-status ] = "in-progress") do={ + $LogPrintExit2 debug $0 ("Sending mail in currently in progress, not flushing.") false; + :return false; + } + :if ([ $IsTimeSync ] = false) do={ $LogPrintExit2 debug $0 ("Time is not synced, not flushing.") false; :return false; |