Skip to content

Commit 23024a3

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-mailmarshalsmtp.go

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

25-
indicators := INDICATORS()
2625
boundaries := []string{"'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"}
2726
if cv := rfc2045.Boundary(bf.Headers["content-type"][0], 1); cv != "" { boundaries = append(boundaries, cv) }
2827

@@ -43,9 +42,9 @@ 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
}
48-
if readcursor & indicators["deliverystatus"] == 0 { continue }
47+
if readcursor & Indicators["deliverystatus"] == 0 { continue }
4948

5049
// Your message:
5150

0 commit comments

Comments
 (0)