@@ -48,17 +48,17 @@ func init() {
48
48
"message" : []string {" ----- Transcript of session follows -----" },
49
49
"error" : []string {"... while talking to " },
50
50
}
51
- permessage := map [string ]string {} // Store values of each Per-Message field
52
- keystrings := []string {} // Key list of permessage
51
+ permessage := make ( map [string ]string , 4 ) // Store values of each Per-Message field
52
+ keystrings := make ( []string , 0 , 4 ) // Key list of permessage
53
53
dscontents := []sis.DeliveryMatter {{}}
54
54
emailparts := rfc5322 .Part (& bf .Payload , boundaries , false )
55
- readcursor := uint8 (0 ) // Points the current cursor position
56
- readslices := []string { "" } // Copy each line for later reference
57
- recipients := uint8 (0 ) // The number of 'Final-Recipient' header
58
- thecommand := "" // An SMTP command name begins with the string ">>>"
59
- esmtpreply := []string {} // Reply messages from the remote server on an SMTP session
60
- sessionerr := false // Flag, true if it is an SMTP session error
61
- anotherset := map [string ]string {} // Another error information
55
+ readcursor := uint8 (0 ) // Points the current cursor position
56
+ readslices := make ( []string , 0 , 64 ) // Copy each line for later reference
57
+ recipients := uint8 (0 ) // The number of 'Final-Recipient' header
58
+ thecommand := "" // An SMTP command name begins with the string ">>>"
59
+ esmtpreply := make ( []string , 0 , 4 ) // Reply messages from the remote server on an SMTP session
60
+ sessionerr := false // Flag, true if it is an SMTP session error
61
+ anotherset := make ( map [string ]string , 4 ) // Another error information
62
62
v := & (dscontents [len (dscontents ) - 1 ])
63
63
64
64
for j , e := range (strings .Split (emailparts [0 ], "\n " )) {
0 commit comments