From b33c61a893e2aa768148e98aaca8b79ca7168528 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Sun, 21 Jul 2024 23:34:18 +0800 Subject: [PATCH] refactor: Update mail provider constants and add new provider for exmail --- core/notification/constants.go | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/core/notification/constants.go b/core/notification/constants.go index 383b04dc..810cee54 100644 --- a/core/notification/constants.go +++ b/core/notification/constants.go @@ -6,20 +6,15 @@ const ( ) const ( - ChannelMailProviderGmail = "gmail" - ChannelMailProviderOutlook = "outlook" - ChannelMailProviderYahoo = "yahoo" - ChannelMailProviderHotmail = "hotmail" - ChannelMailProviderAol = "aol" - ChannelMailProviderZoho = "zoho" - ChannelMailProviderYandex = "yandex" - ChannelMailProviderICloud = "icloud" - ChannelMailProviderQQMailProvider = "qq" - ChannelMailProvider163 = "163" - ChannelMailProvider126 = "126" - ChannelMailProviderSina = "sina" - ChannelMailProviderSohu = "sohu" - ChannelMailProviderTencent = "tencent" + ChannelMailProviderGmail = "gmail" + ChannelMailProviderOutlook = "outlook" + ChannelMailProviderYahoo = "yahoo" + ChannelMailProviderICloud = "icloud" + ChannelMailProviderAol = "aol" + ChannelMailProviderZoho = "zoho" + ChannelMailProviderQQ = "qq" + ChannelMailProvider163 = "163" + ChannelMailProviderExmail = "exmail" ChannelIMProviderSlack = "slack" // https://api.slack.com/messaging/webhooks ChannelIMProviderMSTeams = "ms_teams" // https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/add-incoming-webhook?tabs=newteams%2Cjavascript