mailThread

package
Version: 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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMailtoMailThread

func AddMailtoMailThread(s *mgo.Collection, threadId bson.ObjectId, mail *mail.Mail) bool

func CreateNewMailThread

func CreateNewMailThread(s *mgo.Collection, mail *mail.Mail) (bson.ObjectId, bool)

Create a new Mail thread

func DeleteMailThread

func DeleteMailThread(s *mgo.Collection, threadId bson.ObjectId) (retval bool)

Types

type MailThread

type MailThread struct {
	Id             bson.ObjectId `bson:"_id"`
	ReferenceCount int           `bson:"referenceCount"`
	Mails          []mail.Mail   `bson:"mails"`
}

func GetMailThread

func GetMailThread(s *mgo.Collection, threadId bson.ObjectId) (mailThread MailThread, err error)

func (*MailThread) Init

func (mailThread *MailThread) Init()

Call this

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL