Skip to content

Commit 276cf52

Browse files
committed
#72 Refer lhost.Indicators instead of calling lhost.INDICATORS()
1 parent 2f25040 commit 276cf52

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-postfix.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ func init() {
4040
}
4141
if proceedsto == 0 { return sis.RisingUnderway{} }
4242

43-
indicators := INDICATORS()
4443
boundaries := []string{"Content-Type: message/rfc822", "Content-Type: text/rfc822-headers"}
4544
startingof := map[string][][]string{
4645
// Postfix manual - bounce(5) - http://www.postfix.org/bounce.5.html
@@ -110,11 +109,11 @@ func init() {
110109
if readcursor == 0 {
111110
// Beginning of the bounce message or message/delivery-status part
112111
for _, a := range startingof["message"] {
113-
if moji.Aligned(e, a) { readcursor |= indicators["deliverystatus"]; break }
112+
if moji.Aligned(e, a) { readcursor |= Indicators["deliverystatus"]; break }
114113
}
115114
continue
116115
}
117-
if readcursor & indicators["deliverystatus"] == 0 { continue }
116+
if readcursor & Indicators["deliverystatus"] == 0 { continue }
118117

119118
if f := rfc1894.Match(e); f > 0 {
120119
// "e" matched with any field defined in RFC3464

0 commit comments

Comments
 (0)