Imports github.com/emersion/go-imap github.com/emersion/go-imap/client github.com/mattermost/mattermost-server/v5/model github.com/mattermost/mattermost-server/v5/plugin github.com/pkg/errors Standard library imports fmt io/ioutil mime/quotedprintable net/mail regexp sort strings time