aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9945aae..163b5f9 100644
--- a/README.md
+++ b/README.md
@@ -27,6 +27,8 @@ starttls = true # STARTTLS upgrade (typically port 587)
[logo-contest]
recipient = "reviewer@example.com"
view_url_prefix = "https://review.example.com/logo-contest/" # optional
+subject = "New logo contest entry" # optional
+body_header = "A new logo contest entry has arrived." # optional
["911u19jasdl"] # quote names that TOML would not accept bare
recipient = "other@example.com"
@@ -36,7 +38,7 @@ Stanza names must be a single segment made of letters, numbers, underscores, or
## Upload notifications
-`watcher.py` is run every 5 minutes by `blind-uploader-watcher.timer`, which fires at :00, :05, :10, and so on. It checks each configured drop for an image modified during the last 5-minute slot. If it finds one, it sends a single email to that drop's recipient. The email has no attachment. It includes the submission details (callsign, name, email, and description) from each new image's `.txt` sidecar. If the stanza sets `view_url_prefix`, the email links to each new image as `<view_url_prefix><stored filename>`, for example `https://review.example.com/logo-contest/3f9c…a1.png`. The prefix must be an absolute `http`/`https` URL, and a trailing `/` is added if missing. It should point at the separately protected nginx location that serves this drop's upload directory. Without a prefix, the email contains only the generic message. Nothing is stored between runs. If the system is down or the timer is stopped during a slot, uploads from that slot are never reported.
+`watcher.py` is run every minute by `blind-uploader-watcher.timer`, at the top of each minute. It checks each configured drop for an image modified during the last 1-minute slot. If it finds one, it sends a single email to that drop's recipient. The email has no attachment. It includes the submission details (callsign, name, email, and description) from each new image's `.txt` sidecar. If the stanza sets `view_url_prefix`, the email links to each new image as `<view_url_prefix><stored filename>`, for example `https://review.example.com/logo-contest/3f9c…a1.png`. The prefix must be an absolute `http`/`https` URL, and a trailing `/` is added if missing. It should point at the separately protected nginx location that serves this drop's upload directory. Without a prefix, each image is identified by its stored filename. A stanza can also set `subject` (one line, up to 200 characters) and `body_header` (the text above the per-image details, up to 2000 characters, and multi-line `"""` strings are allowed). Without them, the subject is "New upload received" and the header is "A new file has been uploaded to your private drop." Nothing is stored between runs. If the system is down or the timer is stopped during a slot, uploads from that slot are never reported.
If your SMTP server requires authentication, put the credentials in `/etc/default/blind-uploader-watcher` and make the file `root:root` mode `0600`: