Skip to content

Commit 8b65408

Browse files
committed
#72 Refer lhost.Indicators instead of calling lhost.INDICATORS()
1 parent 10891d4 commit 8b65408

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-mfilter.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ func init() {
2323
if bf.Headers["x-mailer"][0] != "m-FILTER" { return sis.RisingUnderway{} }
2424
if bf.Headers["subject"][0] != "failure notice" { return sis.RisingUnderway{} }
2525

26-
indicators := INDICATORS()
2726
boundaries := []string{"-------original message", "-------original mail info"}
2827
startingof := map[string][]string{
2928
"command": []string{"-------SMTP command"},
@@ -43,10 +42,10 @@ func init() {
4342
// Beginning of the bounce message or message/delivery-status part
4443
if strings.IndexByte(e, '@') > 1 && strings.IndexByte(e, ' ') < 0 && rfc5322.IsEmailAddress(e) {
4544
// This line contains an email address only: "[email protected]"
46-
readcursor |= indicators["deliverystatus"]
45+
readcursor |= Indicators["deliverystatus"]
4746
}
4847
}
49-
if readcursor & indicators["deliverystatus"] == 0 || e == "" { continue }
48+
if readcursor & Indicators["deliverystatus"] == 0 || e == "" { continue }
5049

5150
// このメールは「m-FILTER」が自動的に生成して送信しています。
5251
// メールサーバーとの通信中、下記の理由により

0 commit comments

Comments
 (0)