Skip to content

Commit fc179a6

Browse files
committed
#72 Refer lhost.Indicators instead of calling lhost.INDICATORS()
1 parent d2c8c6b commit fc179a6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lhost/via-v5sendmail.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ func init() {
2424
if bf == nil || bf.Empty() == true { return sis.RisingUnderway{} }
2525
if strings.HasPrefix(bf.Headers["subject"][0], "Returned mail: ") == false { return sis.RisingUnderway{} }
2626

27-
indicators := INDICATORS()
2827
boundaries := []string{" ----- Unsent message follows -----", " ----- No message was collected -----"}
2928
startingof := map[string][]string{
3029
// Error text regular expressions which defined in src/savemail.c
@@ -60,10 +59,10 @@ func init() {
6059
// previous line of the beginning of the original message.
6160
if readcursor == 0 {
6261
// Beginning of the bounce message or message/delivery-status part
63-
if strings.Contains(e, startingof["message"][0]) { readcursor |= indicators["deliverystatus"] }
62+
if strings.Contains(e, startingof["message"][0]) { readcursor |= Indicators["deliverystatus"] }
6463
continue
6564
}
66-
if readcursor & indicators["deliverystatus"] == 0 || e == "" { continue }
65+
if readcursor & Indicators["deliverystatus"] == 0 || e == "" { continue }
6766

6867
// ----- Transcript of session follows -----
6968
// While talking to smtp.example.com:

0 commit comments

Comments
 (0)