diff options
author | Nick White <git@njw.name> | 2020-07-21 16:48:32 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-07-21 16:48:32 +0100 |
commit | 6cdfec95a80258f632fa7ce4dce36000cdfeea30 (patch) | |
tree | 36952904dec2615367d7b32a8f730b46c1e64438 /mailsettings.go | |
parent | 80b49a19f921a6a3742eb7b7ec2937b872fe4d49 (diff) |
[bookpipeline] If preprocessing fails, email us and remove the job from the queue
This prevents the current situation where a failed preprocessing job
is endlessly repeated, potentially spawning thousands of ocrpage
jobs in its wake each time.
Note that the email stuff works but requires putting secrets into
.go files, so need to rewrite that to read from somewhere more
sensible like a dotfile on the host.
Diffstat (limited to 'mailsettings.go')
-rw-r--r-- | mailsettings.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mailsettings.go b/mailsettings.go new file mode 100644 index 0000000..b12a3a3 --- /dev/null +++ b/mailsettings.go @@ -0,0 +1,18 @@ +// Copyright 2020 Nick White. +// Use of this source code is governed by the GPLv3 +// license that can be found in the LICENSE file. + +package bookpipeline + +// This file contains various mail account specific stuff; set this if +// you want to use the email notification functionality. + +// TODO: these should be set in a dotfile on the host, not here where the world can see them +const ( + MailServer = "" + MailPort = 587 + MailUser = "" + MailPass = "" + MailFrom = "" + MailTo = "" +) |