Skip to content

Commit 10891d4

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-messagingserver.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ func init() {
3131
if strings.HasPrefix(bf.Headers["subject"][0], "Delivery Notification: ") { proceedsto = true }
3232
if proceedsto == false { return sis.RisingUnderway{} }
3333

34-
indicators := INDICATORS()
3534
boundaries := []string{"Content-Type: message/rfc822", "\nReturn-Path: "}
3635
startingof := map[string][]string{"message": []string{"This report relates to a message you sent with the following header fields:"}}
3736
messagesof := map[string][]string{"hostunknown": []string{"Illegal host/domain name found"}}
@@ -47,10 +46,10 @@ func init() {
4746
// previous line of the beginning of the original message.
4847
if readcursor == 0 {
4948
// Beginning of the bounce message or message/delivery-status part
50-
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= indicators["deliverystatus"] }
49+
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= Indicators["deliverystatus"] }
5150
continue
5251
}
53-
if readcursor & indicators["deliverystatus"] == 0 || e == "" { continue }
52+
if readcursor & Indicators["deliverystatus"] == 0 || e == "" { continue }
5453

5554
// --Boundary_(ID_0000000000000000000000)
5655
// Content-type: text/plain; charset=us-ascii

0 commit comments

Comments
 (0)