@@ -50,16 +50,16 @@ func Inquire(bf *sis.BeforeFact) sis.RisingUnderway {
50
50
bf .Payload = strings .Replace (bf .Payload , cv , "\n \n " + boundaries [0 ] + cv , 1 )
51
51
break
52
52
}
53
- permessage := map [string ]string {} // Store values of each Per-Message field
54
- keystrings := []string {} // Key list of permessage
53
+ permessage := make ( map [string ]string , 4 ) // Store values of each Per-Message field
54
+ keystrings := make ( []string , 0 , 4 ) // Key list of permessage
55
55
dscontents := []sis.DeliveryMatter {{}}
56
56
alternates := sis.DeliveryMatter {}
57
57
emailparts := rfc5322 .Part (& bf .Payload , boundaries , false )
58
- readcursor := uint8 (0 ) // Points the current cursor position
59
- readslices := []string { "" } // Copy each line for later reference
60
- recipients := uint8 (0 ) // The number of 'Final-Recipient' header
61
- beforemesg := "" // String before startingof["message"]
62
- goestonext := false // Flag: do not append the line into "beforemesg"
58
+ readcursor := uint8 (0 ) // Points the current cursor position
59
+ readslices := make ( []string , 1 , 64 ) // Copy each line for later reference
60
+ recipients := uint8 (0 ) // The number of 'Final-Recipient' header
61
+ beforemesg := "" // String before startingof["message"]
62
+ goestonext := false // Flag: do not append the line into "beforemesg"
63
63
isboundary := []string {rfc2045 .Boundary (bf .Headers ["content-type" ][0 ], 0 )}
64
64
v := & (dscontents [len (dscontents ) - 1 ])
65
65
0 commit comments