This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/cmd
Maxim Zhiburt a1952afc38
Sendmail command (#13079)
* Add SendSync method

Usefull to have when you need to be confident that message was sent.

* Add sendmail command

* add checks that if either title or content is empty then error out

* Add a confirmation step

* Add --force option to bypass confirm step

* Move implementation of runSendMail to a different file

* Add copyrighting comment

* Make content optional

Print waring if it's empty or haven't been set up.
The warning will be skiped if there's a `--force` flag.

* Fix import style

Co-authored-by: 6543 <6543@obermui.de>

* Use batch when getting all users

IterateUsers uses batching by default.

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* Send emails one by one instead of as one chunck

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* Send messages concurantly

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* Use SendAsync+Flush instead of SendSync

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* Add timeout parameter to sendemail command

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* Fix spelling mistake

Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com>

* Update cmd/admin.go

Co-authored-by: 6543 <6543@obermui.de>

* Connect to a running Gitea instance

* Fix mispelling

* Add copyright comment

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2020-10-24 16:38:14 -04:00
..
admin.go Sendmail command (#13079) 2020-10-24 16:38:14 -04:00
admin_auth_ldap.go
admin_auth_ldap_test.go
cert.go
cmd.go Sendmail command (#13079) 2020-10-24 16:38:14 -04:00
convert.go
doctor.go Add command to recreate tables (#12407) 2020-09-06 22:52:01 +01:00
dump.go Add default storage configurations (#12813) 2020-09-29 12:05:13 +03:00
embedded.go
embedded_stub.go
generate.go TrimSpace when reading InternalToken from a file (#11502) 2020-05-20 19:16:06 +03:00
hook.go Move update-server-info to hooks (#12826) 2020-10-14 00:24:06 +08:00
keys.go
mailer.go Sendmail command (#13079) 2020-10-24 16:38:14 -04:00
manager.go Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 2020-07-05 20:07:07 -04:00
migrate.go
migrate_storage.go Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
serv.go Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00
web.go Move install pages out of main macaron routes (#13195) 2020-10-19 17:03:08 -04:00
web_graceful.go Move install pages out of main macaron routes (#13195) 2020-10-19 17:03:08 -04:00