package msg import ( "bufio" "bytes" "errors" "fmt" "io" "math/rand" "os" "path" "strings" "sync" "git.sr.ht/~rjarry/aerc/app" "git.sr.ht/~rjarry/aerc/config" "git.sr.ht/~rjarry/aerc/lib" "git.sr.ht/~rjarry/aerc/lib/format" "git.sr.ht/~rjarry/aerc/log" "git.sr.ht/~rjarry/aerc/models" "git.sr.ht/~rjarry/aerc/worker/types" "github.com/emersion/go-message/mail" "git.sr.ht/~sircmpwn/getopt" ) type forward struct{} func init() { register(forward{}) } func (forward) Aliases() []string { return []string{"forward"} } func (forward) Complete(aerc *app.Aerc, args []string) []string { return nil } func (forward) Execute(aerc *app.Aerc, args []string) error { opts, optind, err := getopt.Getopts(args, "AFT:eE") if err != nil { return err } if len(args) != optind { return errors.New("Usage: forward [-A|-F] [-T