Skip to content

Commit 77b2201

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-x3.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ func init() {
2424
if strings.HasPrefix(bf.Headers["from"][0], "Mail Delivery System") == false { return sis.RisingUnderway{} }
2525
if strings.HasPrefix(bf.Headers["subject"][0], "Delivery status notification") == false { return sis.RisingUnderway{} }
2626

27-
indicators := INDICATORS()
2827
boundaries := []string{"Content-Type: message/rfc822"}
2928
startingof := map[string][]string{
3029
"message": []string{" This is an automatically generated Delivery Status Notification."},
@@ -42,10 +41,10 @@ func init() {
4241
// previous line of the beginning of the original message.
4342
if readcursor == 0 {
4443
// Beginning of the bounce message or message/delivery-status part
45-
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= indicators["deliverystatus"] }
44+
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= Indicators["deliverystatus"] }
4645
continue
4746
}
48-
if readcursor & indicators["deliverystatus"] == 0 || e == "" { continue }
47+
if readcursor & Indicators["deliverystatus"] == 0 || e == "" { continue }
4948

5049
// ============================================================================
5150
// This is an automatically generated Delivery Status Notification.

0 commit comments

Comments
 (0)