Skip to content

Commit 6047178

Browse files
committed
#72 Refer lhost.Indicators instead of calling lhost.INDICATORS()
1 parent 77b9ef0 commit 6047178

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-x2.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ func init() {
2626
if moji.HasPrefixAny(bf.Headers["subject"][0], emailtitle) { proceedsto = true }
2727
if proceedsto == false { return sis.RisingUnderway{} }
2828

29-
indicators := INDICATORS()
3029
boundaries := []string{"--- Original message follows."}
3130
startingof := map[string][]string{
3231
"message": []string{"Unable to deliver message to the following address"},
@@ -43,10 +42,10 @@ func init() {
4342
// previous line of the beginning of the original message.
4443
if readcursor == 0 {
4544
// Beginning of the bounce message or message/delivery-status part
46-
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= indicators["deliverystatus"] }
45+
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= Indicators["deliverystatus"] }
4746
continue
4847
}
49-
if readcursor & indicators["deliverystatus"] == 0 || e == "" { continue }
48+
if readcursor & Indicators["deliverystatus"] == 0 || e == "" { continue }
5049

5150
// Message from example.com.
5251
// Unable to deliver message to the following address(es).

0 commit comments

Comments
 (0)