Skip to content

Commit b5a5bd3

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-notes.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ func init() {
2121
if bf == nil || bf.Empty() == true { return sis.RisingUnderway{} }
2222
if strings.HasPrefix(bf.Headers["subject"][0], "Undeliverable message") == false { return sis.RisingUnderway{} }
2323

24-
indicators := INDICATORS()
2524
boundaries := []string{"------- Returned Message --------"}
2625
startingof := map[string][]string{"message": []string{"------- Failure Reasons "} }
2726
messagesof := map[string][]string{
@@ -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
// ------- Failure Reasons --------
5251
//

0 commit comments

Comments
 (0)