You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
admin.go Sendmail command (#13079) 4 years ago
admin_auth_ldap.go Add restricted user filter to LDAP authentication (#10600) 4 years ago
admin_auth_ldap_test.go Add restricted user filter to LDAP authentication (#10600) 4 years ago
cert.go Add golangci (#6418) 5 years ago
cmd.go Sendmail command (#13079) 4 years ago
convert.go Move database settings from models to setting (#7806) 5 years ago
doctor.go Add command to recreate tables (#12407) 4 years ago
dump.go Add default storage configurations (#12813) 4 years ago
embedded.go Implement "embedded" command to extract static resources (#9982) 4 years ago
embedded_stub.go Implement "embedded" command to extract static resources (#9982) 4 years ago
generate.go TrimSpace when reading InternalToken from a file (#11502) 4 years ago
hook.go Move update-server-info to hooks (#12826) 4 years ago
keys.go Add debug option to serv to help debug problems (#9492) 5 years ago
mailer.go Sendmail command (#13079) 4 years ago
manager.go Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 4 years ago
migrate.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago
migrate_storage.go Avatars and Repo avatars support storing in minio (#12516) 4 years ago
serv.go Add ssh certificate support (#12281) 4 years ago
web.go Move install pages out of main macaron routes (#13195) 4 years ago
web_graceful.go Move install pages out of main macaron routes (#13195) 4 years ago