Skip to content

Commit 77b9ef0

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-x1.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ func init() {
2222
if strings.HasPrefix(bf.Headers["subject"][0], "Returned Mail: ") == false { return sis.RisingUnderway{} }
2323
if strings.HasPrefix(bf.Headers["from"][0], `"Mail Deliver System" `) == false { return sis.RisingUnderway{} }
2424

25-
indicators := INDICATORS()
2625
boundaries := []string{"Received: from "}
2726
startingof := map[string][]string{"message": []string{"The original message was received at "}}
2827

@@ -37,9 +36,9 @@ func init() {
3736
// previous line of the beginning of the original message.
3837
if readcursor == 0 {
3938
// Beginning of the bounce message or message/delivery-status part
40-
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= indicators["deliverystatus"] }
39+
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= Indicators["deliverystatus"] }
4140
}
42-
if readcursor & indicators["deliverystatus"] == 0 || e == "" { continue }
41+
if readcursor & Indicators["deliverystatus"] == 0 || e == "" { continue }
4342

4443
// The original message was received at Thu, 29 Apr 2010 23:34:45 +0900 (JST)
4544

0 commit comments

Comments
 (0)