syzkaller: github.com/google/syzkaller/pkg/email Index | Files

package email

import "github.com/google/syzkaller/pkg/email"

Index

Package Files

parser.go patch.go reply.go

func AddAddrContext Uses

func AddAddrContext(email, context string) (string, error)

AddAddrContext embeds context into local part of the provided email address using '+'. Returns the resulting email address.

func CanonicalEmail Uses

func CanonicalEmail(email string) string

func FormReply Uses

func FormReply(email, reply string) string

func MergeEmailLists Uses

func MergeEmailLists(lists ...[]string) []string

MergeEmailLists merges several email lists removing duplicates and invalid entries.

func ParsePatch Uses

func ParsePatch(text string) (title string, diff string, err error)

func RemoveAddrContext Uses

func RemoveAddrContext(email string) (string, string, error)

RemoveAddrContext extracts context after '+' from the local part of the provided email address. Returns address without the context and the context.

func RemoveFromEmailList Uses

func RemoveFromEmailList(list []string, toRemove string) []string

type Command Uses

type Command int
const (
    CmdUnknown Command = iota
    CmdNone
    CmdUpstream
    CmdFix
    CmdDup
    CmdUnDup
    CmdTest
    CmdInvalid
    CmdUnCC
)

type Email Uses

type Email struct {
    BugID       string
    MessageID   string
    Link        string
    Subject     string
    From        string
    Cc          []string
    Body        string  // text/plain part
    Patch       string  // attached patch, if any
    Command     Command // command to bot
    CommandStr  string  // string representation of the command
    CommandArgs string  // arguments for the command
}

func Parse Uses

func Parse(r io.Reader, ownEmails []string) (*Email, error)

Package email imports 13 packages (graph) and is imported by 3 packages. Updated 2019-05-27. Refresh now. Tools for package owners.