Standard Library

GoNetMail

Go stdlib package — net/mail. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.Address.String()Neutral
#
Signature
Address.String() string

String formats the address as a valid RFC 5322 address.

.AddressParser.Parse()Neutral
#
Signature
AddressParser.Parse(address string) (*Address, error)

Parse parses a single RFC 5322 address of the

.AddressParser.ParseList()Neutral
#
Signature
AddressParser.ParseList(list string) ([]*Address, error)

ParseList parses the given string as a list of comma-separated addresses

.Header.AddressList()Neutral
#
Signature
Header.AddressList(key string) ([]*Address, error)

AddressList parses the named header field as a list of addresses.

.Header.Date()Neutral
#
Signature
Header.Date() (time.Time, error)

Date parses the Date header field.

.Header.Get()Neutral
#
Signature
Header.Get(key string) string

Get gets the first value associated with the given key.

.ParseAddress()Neutral
#
Signature
ParseAddress(address string) (*Address, error)

ParseAddress parses a single RFC 5322 address, e.g. "Barry Gibbs <bg@example.com>"

.ParseAddressList()Neutral
#
Signature
ParseAddressList(list string) ([]*Address, error)

ParseAddressList parses the given string as a list of addresses.

.ParseDate()Neutral
#
Signature
ParseDate(date string) (time.Time, error)

ParseDate parses an RFC 5322 date string.

.ReadMessage()Neutral
#
Signature
ReadMessage(r io.Reader) (*Message, error)

ReadMessage reads a message from r.

Fully-Qualified Names

FQNField
net/mailfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # net/mail