forgejo/modules
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
..
analyze
auth Remove PAM from auth dropdown when unavailable (#13276) 2020-10-23 11:10:29 +01:00
avatar Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
base Use a simple format for the big number on ui (#12822) 2020-09-16 00:07:18 -04:00
cache Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
charset
context Move install pages out of main macaron routes (#13195) 2020-10-19 17:03:08 -04:00
convert Add review request api (#11355) 2020-10-20 14:18:25 -04:00
cron Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00
emoji
eventsource
generate
git go-version constraints ignore pre-releases (#13234) 2020-10-21 11:42:08 -04:00
gitgraph
graceful Move install pages out of main macaron routes (#13195) 2020-10-19 17:03:08 -04:00
hcaptcha hCaptcha Support (#12594) 2020-10-02 23:37:53 -04:00
highlight Escape failed highlighted code (#12685) 2020-09-02 16:19:42 -04:00
httplib
indexer fix: use Base36 for all code indexers (#12830) 2020-09-14 13:40:07 +03:00
lfs LFS support to be stored on minio (#12518) 2020-09-08 23:45:10 +08:00
log Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
markup Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
metrics
migrations Migrations: Gitea should not fail just because of no apiConfig return (#13229) 2020-10-22 01:46:18 -04:00
nosql Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
notification [Refactor] Move APIFormat functions into convert package (#12856) 2020-10-17 00:23:08 -04:00
options
password Check passwords against HaveIBeenPwned (#12716) 2020-09-08 17:06:39 -05:00
pprof
private Sendmail command (#13079) 2020-10-24 16:38:14 -04:00
process
public fix go1.15 lint error in modules/public/public.go (#12707) 2020-09-04 16:15:54 +03:00
queue Slightly simplify the queue settings code to help reduce the risk of problems (#12976) 2020-10-15 17:40:03 -04:00
recaptcha hCaptcha Support (#12594) 2020-10-02 23:37:53 -04:00
references Add spent time to referenced issue in commit message (#12220) 2020-09-04 11:37:37 -04:00
repofiles go-version constraints ignore pre-releases (#13234) 2020-10-21 11:42:08 -04:00
repository go-version constraints ignore pre-releases (#13234) 2020-10-21 11:42:08 -04:00
secret Attachments: Add extension support, allow all types for releases (#12465) 2020-10-05 01:49:33 -04:00
session Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
setting go-version constraints ignore pre-releases (#13234) 2020-10-21 11:42:08 -04:00
ssh Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00
storage When handling errors in storageHandler check underlying error (#13178) 2020-10-17 21:29:06 -04:00
structs Add review request api (#11355) 2020-10-20 14:18:25 -04:00
svg
sync
task Store task errors following migrations and display them (#13246) 2020-10-23 19:46:35 -04:00
templates Use a simple format for the big number on ui (#12822) 2020-09-16 00:07:18 -04:00
test Macaron 1.5 (#12596) 2020-08-27 22:47:17 -04:00
timeutil
upload Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
user
util Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
validation
webhook Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00