Add a success indication
All checks were successful
docker-image / docker (push) Successful in 3m20s
All checks were successful
docker-image / docker (push) Successful in 3m20s
Also document the command.
This commit is contained in:
parent
1fc917bdf5
commit
5fc42907e3
2 changed files with 8 additions and 5 deletions
|
|
@ -69,6 +69,7 @@ class EmailSender:
|
|||
except Exception as e:
|
||||
print(f'Unable to send mail through {self}: {e}')
|
||||
raise e
|
||||
print(f'Test email to {self.mail_from} sent successfully.')
|
||||
|
||||
def __str__(self):
|
||||
return f'EmailSender<{self.hostname},{self.port},{self.username},{self.mail_from}>'
|
||||
|
|
@ -291,6 +292,7 @@ def main():
|
|||
command is one of:
|
||||
- check: print a list of revisions and notes to be expired
|
||||
- cron: run expire every 24 hours
|
||||
- emailcheck: send a test email from the configured sender to themselves
|
||||
- expire: expire old revisions and untouched notes
|
||||
|
||||
See https://git.hamburg.ccc.de/CCCHH/hedgedoc-expire
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue