Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
enmime
✓ github.com/jhillyerd/enmime
Parses a MIME message and prints the Subject header.
package main
import (
"fmt"
"github.com/jhillyerd/enmime"
)
func main() {
// Parse a MIME message from a reader
msg, err := enmime.ParseEnvelope(strings.NewReader("From: test@example.com\nSubject: Test\n\nHello"))
if err != nil {
panic(err)
}
fmt.Println(msg.GetHeader("Subject"))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.