|
@@ -239,7 +239,9 @@ func handleMailMessage(emailMessage mail.MailMessage) (err error) {
|
|
|
}
|
|
|
reportInfo.Title = strings.Replace(reportInfo.Title, "[PCI ANALYTICS CLOUD PLATFORM(00) Fwd] - ", "", -1)
|
|
|
for _, v := range ruleList {
|
|
|
- if strings.Contains(emailMessage.Title, v.Rule) {
|
|
|
+ title := strings.ToLower(reportInfo.Title)
|
|
|
+ rule := strings.ToLower(v.Rule)
|
|
|
+ if strings.Contains(title, rule) {
|
|
|
reportInfo.Title = v.Title
|
|
|
reportInfo.Abstract = v.Abstract
|
|
|
reportInfo.ClassifyID = v.ClassifyId
|