mailbox

package
v0.0.0-...-c7bc9a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 FindMailBox(s *mgo.Collection, userId bson.ObjectId) (mbox MailBox, ret bool)

func (*MailBox) AddMailToDeleted

func (mbox *MailBox) AddMailToDeleted(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool

func (*MailBox) AddMailToImportant

func (mbox *MailBox) AddMailToImportant(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool

func (*MailBox) AddMailToInbox

func (mbox *MailBox) AddMailToInbox(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool

func (*MailBox) AddMailToSent

func (mbox *MailBox) AddMailToSent(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool

func (*MailBox) AddNewThreadToDeleted

func (mbox *MailBox) AddNewThreadToDeleted(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool

func (*MailBox) AddNewThreadToImportant

func (mbox *MailBox) AddNewThreadToImportant(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool

func (*MailBox) AddNewThreadToInbox

func (mbox *MailBox) AddNewThreadToInbox(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool

func (*MailBox) AddNewThreadToSent

func (mbox *MailBox) AddNewThreadToSent(s *mgo.Collection, threadId bson.ObjectId, m *mail.Mail) bool

func (*MailBox) DecrementUnreadEmail

func (mbox *MailBox) DecrementUnreadEmail(s *mgo.Collection, val int) bool

func (*MailBox) IncrementUnreadEmail

func (mbox *MailBox) IncrementUnreadEmail(s *mgo.Collection, val int) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL