Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_ERR = "Error: %v"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendMail ¶
type BackendMail struct { MVVM mvvm // contains filtered or unexported fields }
func New ¶
func New(mvvm mvvm, serverAddr string, username string, password string) (*BackendMail, error)
Create a new backend_mail struct Paramter: mvvm, serverAddress, username, password returns an error if it is not possible to connect and login to the server
func (*BackendMail) CheckMailConnection ¶
func (b *BackendMail) CheckMailConnection() bool
Checks the mail connection to the server and the login credentials. Returns true if the connection and authentication is fine otherwise false
func (*BackendMail) GetMailsToday ¶
func (b *BackendMail) GetMailsToday() ([]MailData, error)
GetMailsToday fetches all unread mails from today and checks the mails with the subject containing "Anwesenheitsliste". It extracts the attached image as binary data.
Returns an array with the maildata from the mails. It marks the returned mails as read.
Click to show internal directories.
Click to hide internal directories.