Skip to content

Commit 08345f0

Browse files
committed
add missing config example
1 parent 4baedb5 commit 08345f0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

custom/conf/app.example.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,14 @@ RUN_AT_START = false
11021102
NO_SUCCESS_NOTICE = false
11031103
SCHEDULE = @every 72h
11041104

1105+
; fetch unread mails
1106+
[cron.imap_fetch_mails]
1107+
; when [mail_recive] is enable, this will auto enable also
1108+
ENABLED = false
1109+
RUN_AT_START = false
1110+
NO_SUCCESS_NOTICE = false
1111+
SCHEDULE = @every 5m
1112+
11051113
[git]
11061114
; The path of git executable. If empty, Gitea searches through the PATH environment.
11071115
PATH =

modules/cron/tasks_extended.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func registerRemoveRandomAvatars() {
121121
func registerImapFetchUnReadMails() {
122122
RegisterTaskFatal("imap_fetch_mails", &BaseConfig{
123123
Enabled: setting.MailReciveService != nil,
124-
RunAtStart: true,
124+
RunAtStart: false,
125125
Schedule: "@every 5m",
126126
}, func(ctx context.Context, _ *models.User, _ Config) error {
127127
return imap.FetchAllUnReadMails()

0 commit comments

Comments
 (0)