Commit 4c384dec authored by Sietse Ringers's avatar Sietse Ringers
Browse files

docs: explain LIMIT 10 clause in keyshare user email job

parent 2509f50b
......@@ -116,6 +116,9 @@ func (t *taskHandler) expireAccounts() {
// Iterate over users we havent seen in ExpiryDelay days, and which have a registered email.
// We ignore (and thus keep alive) accounts without email addresses, as we can't inform their owners.
// (Note that for such accounts we store no email addresses, i.e. no personal data whatsoever.)
// We do this for only 10 users at a time to prevent us from sending out lots of emails
// simultaneously, which could lead to our email server being flagged as sending spam.
// The users excluded by this limit will get their email next time this task is executed.
err := t.db.QueryIterate(`
SELECT id, username, language
FROM irma.users
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment