Documentation ¶
Index ¶
- type MailBox
- func (mbox *MailBox) AddMailToDeleted(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool
- func (mbox *MailBox) AddMailToImportant(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool
- func (mbox *MailBox) AddMailToInbox(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool
- func (mbox *MailBox) AddMailToSent(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool
- func (mbox *MailBox) AddNewThreadToDeleted(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool
- func (mbox *MailBox) AddNewThreadToImportant(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool
- func (mbox *MailBox) AddNewThreadToInbox(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool
- func (mbox *MailBox) AddNewThreadToSent(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool
- func (mbox *MailBox) DecrementUnreadEmail(s *mgo.Collection, val int) bool
- func (mbox *MailBox) IncrementUnreadEmail(s *mgo.Collection, val int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailBox ¶
type MailBox struct { UserId bson.ObjectId `bson:"_id"` NumberOfUnreadMails int `bson:"numberOfUnreadMails"` Inbox []mailThreadCache.MailThreadCache `bson:"Inbox"` Sent []mailThreadCache.MailThreadCache `bson:"Sent"` Important []mailThreadCache.MailThreadCache `bson:"Important"` Deleted []mailThreadCache.MailThreadCache `bson:"Deleted"` }
func FindMailBox ¶
func (*MailBox) AddMailToDeleted ¶
func (*MailBox) AddMailToImportant ¶
func (*MailBox) AddMailToInbox ¶
func (*MailBox) AddMailToSent ¶
func (*MailBox) AddNewThreadToDeleted ¶
func (*MailBox) AddNewThreadToImportant ¶
func (*MailBox) AddNewThreadToInbox ¶
func (*MailBox) AddNewThreadToSent ¶
func (*MailBox) DecrementUnreadEmail ¶
func (*MailBox) IncrementUnreadEmail ¶
Click to show internal directories.
Click to hide internal directories.