Documentation ¶
Index ¶
- Variables
- func CheckRegExpString(Expression string, String string) string
- func ImapConnect(Server string, Port int, Pem string, Key string) (*tls.Conn, string, error)
- func ImapGetAllMailboxes(conn *tls.Conn, Path string) []string
- func ImapGetRawMailBoxMessageHeader(conn *tls.Conn, MailId int) string
- func ImapLogin(conn *tls.Conn, UserName string, Password string) string
- func ImapLogout(conn *tls.Conn) string
- func ImapParseMailHeader(MessageHeaderRaw string, Header string) string
- func ImapReadMailBoxMessagesHeader(conn *tls.Conn) (string, error)
- func ImapReadServerMessage(conn *tls.Conn) (string, int)
- func ImapSendServerMessage(conn *tls.Conn, message string) (string, error)
- func LoadMsgErrors(msg *evmessage.Message) *evmessage.Message
- func SuperPlainAuth(UserName string, Password string) smtp.Auth
- type Email
- type HttpRpcProxy
- type ImapEmail
- type ImapEmailHeader
- type ImapMailBoxAllMessages
- type ImapMailBoxInformation
- type ImapMailBoxes
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string = "v1"
Functions ¶
func CheckRegExpString ¶
func ImapConnect ¶
func ImapLogout ¶
func ImapParseMailHeader ¶
func ImapSendServerMessage ¶
Types ¶
type Email ¶
type Email struct { Server string `xml:"Server"` Port int `xml:"Port"` User string `xml:"User"` Password string `xml:"Password"` From string `xml:"From"` To []string `xml:"To>Recipient"` Subject string `xml:"Subject"` Body string `xml:"Text"` Html string `xml:"Html"` Raw string `xml:"Raw"` Attachments map[string][]byte }
func ImapEmailSplitBoundary ¶
type HttpRpcProxy ¶
type HttpRpcProxy struct{}
func NewHttpRpcProxy ¶
func NewHttpRpcProxy() *HttpRpcProxy
func (*HttpRpcProxy) HttpCreateRequest ¶
type ImapEmailHeader ¶
type ImapEmailHeader struct { Id int `xml:"Id"` DeliverdTo string `xml:"DeliverdTo"` Received string `xml:"Received"` ReturnPath string `xml:"ReturnPath"` ReceivedSPF string `xml:"Received-SPF"` AuthenticationResults string `xml:"Authentication-Results"` MimeVersion string `xml:"Mime-Version"` Date string `xml:"Date"` MessageID string `xml:"Message-ID"` Subject string `xml:"Subject"` From string `xml:"From"` To string `xml:"To"` ContentType string `xml:"Content-Type"` XGmMessageState string `xml:"X-Gm-Message-State"` }
func ImapGetMailBoxMessageHeader ¶
func ImapGetMailBoxMessageHeader(conn *tls.Conn, MailId int) *ImapEmailHeader
func NewImapEmailHeader ¶
func NewImapEmailHeader() *ImapEmailHeader
type ImapMailBoxAllMessages ¶
type ImapMailBoxAllMessages struct {
Headers []ImapEmailHeader `xml:"Headers>Header"`
}
func ImapGetAllMailBoxMessageHeader ¶
func ImapGetAllMailBoxMessageHeader(conn *tls.Conn, MailBox *ImapMailBoxInformation) (*ImapMailBoxAllMessages, error)
func NewImapMailBoxAllMessages ¶
func NewImapMailBoxAllMessages() *ImapMailBoxAllMessages
type ImapMailBoxInformation ¶
type ImapMailBoxInformation struct { Flags []string `xml:"Flags>Flag"` Mails int `xml:"Mails"` Recent int `xml:"Recent"` NonExistent bool `xml:"NonExistent"` Path string `xml:"Path"` }
func ImapGetMailBoxInformation ¶
func ImapGetMailBoxInformation(conn *tls.Conn, Path string) *ImapMailBoxInformation
func NewImapMailBoxInformation ¶
func NewImapMailBoxInformation() *ImapMailBoxInformation
type ImapMailBoxes ¶
type ImapMailBoxes struct {
MailBoxes []ImapMailBoxInformation `xml:"Mailboxes>Mailbox"`
}
func ImapGetMailBoxesInformation ¶
func ImapGetMailBoxesInformation(conn *tls.Conn) *ImapMailBoxes
func NewImapMailBoxes ¶
func NewImapMailBoxes() *ImapMailBoxes
Click to show internal directories.
Click to hide internal directories.