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.
gitea/routers
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 Remove PAM from auth dropdown when unavailable (#13276) 4 years ago
api/v1 Add review request api (#11355) 4 years ago
dev Display ui time with customize time location (#7792) 6 years ago
events Add EventSource support (#11235) 5 years ago
org #13091 - add new mirror button (#13105) 4 years ago
private Sendmail command (#13079) 4 years ago
repo Store task errors following migrations and display them (#13246) 4 years ago
routes Store task errors following migrations and display them (#13246) 4 years ago
user Store task errors following migrations and display them (#13246) 4 years ago
utils Return the full rejection message and errors in flash errors (#13221) 4 years ago
home.go Simplify CheckUnitUser logic (#12854) 5 years ago
init.go Move install pages out of main macaron routes (#13195) 4 years ago
install.go Move install pages out of main macaron routes (#13195) 4 years ago
metrics.go Use gitea forked macaron (#7933) 6 years ago
swagger_json.go Add gitea-vet (#10948) 5 years ago