Skip to content

Commit 2f25040

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-opensmtpd.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ func init() {
3636
}
3737
if proceedsto == 0 { return sis.RisingUnderway{} }
3838

39-
indicators := INDICATORS()
4039
boundaries := []string{" Below is a copy of the original message:"}
4140
startingof := map[string][]string{
4241
// http://www.openbsd.org/cgi-bin/man.cgi?query=smtpd&sektion=8
@@ -108,10 +107,10 @@ func init() {
108107
// previous line of the beginning of the original message.
109108
if readcursor == 0 {
110109
// Beginning of the bounce message or message/delivery-status part
111-
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= indicators["deliverystatus"] }
110+
if strings.HasPrefix(e, startingof["message"][0]) { readcursor |= Indicators["deliverystatus"] }
112111
continue
113112
}
114-
if readcursor & indicators["deliverystatus"] == 0 || e == "" { continue }
113+
if readcursor & Indicators["deliverystatus"] == 0 || e == "" { continue }
115114

116115
// Hi!
117116
//

0 commit comments

Comments
 (0)