Adding upstream version 3.6.2.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1347af6294
commit
cb9cbb7a25
32 changed files with 4944 additions and 0 deletions
13
writer.go
Normal file
13
writer.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package mailyak
|
||||
|
||||
import "bytes"
|
||||
|
||||
// BodyPart is a buffer holding the contents of an email MIME part.
|
||||
type BodyPart struct{ bytes.Buffer }
|
||||
|
||||
// Set accepts a string s as the contents of a BodyPart, replacing any existing
|
||||
// data.
|
||||
func (w *BodyPart) Set(s string) {
|
||||
w.Reset()
|
||||
w.WriteString(s)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue