Documentation
¶
Index ¶
- Constants
- Variables
- func AreaHasUnreadMessages(area *AreaPrimitive) bool
- func Highlight(name string) string
- func Lookup(name string) int
- func Search(name string) int
- func SortAreas()
- type AreaPrimitive
- type EchoAreaMsgType
- type EchoAreaType
- type JAM
- func (j *JAM) DelMsg(l uint32) error
- func (j *JAM) GetChrs() string
- func (j *JAM) GetCount() uint32
- func (j *JAM) GetLast() uint32
- func (j *JAM) GetMessages() *[]MessageListItem
- func (j *JAM) GetMsg(position uint32) (*Message, error)
- func (j *JAM) GetMsgType() EchoAreaMsgType
- func (j *JAM) GetName() string
- func (j *JAM) GetType() EchoAreaType
- func (j *JAM) Init()
- func (j *JAM) SaveMsg(tm *Message) error
- func (j *JAM) SetChrs(c string)
- func (j *JAM) SetLast(l uint32)
- type MSG
- func (m *MSG) DelMsg(l uint32) error
- func (m *MSG) GetChrs() string
- func (m *MSG) GetCount() uint32
- func (m *MSG) GetLast() uint32
- func (m *MSG) GetMessages() *[]MessageListItem
- func (m *MSG) GetMsg(position uint32) (*Message, error)
- func (m *MSG) GetMsgType() EchoAreaMsgType
- func (m *MSG) GetName() string
- func (m *MSG) GetType() EchoAreaType
- func (m *MSG) Init()
- func (m *MSG) SaveMsg(tm *Message) error
- func (m *MSG) SetChrs(s string)
- func (m *MSG) SetLast(l uint32)
- type MSGAttrs
- type Message
- func (m *Message) Decode()
- func (m *Message) Encode()
- func (m *Message) GetForward() []string
- func (m *Message) GetQuote() []string
- func (m *Message) MakeBody() *Message
- func (m *Message) ParseRaw() error
- func (m *Message) ToEditAnswerView(om *Message) string
- func (m *Message) ToEditForwardView(om *Message) string
- func (m *Message) ToEditNewView() string
- func (m *Message) ToView(showKludges bool) string
- type MessageListItem
- type Squish
- func (s *Squish) DelMsg(l uint32) error
- func (s *Squish) GetChrs() string
- func (s *Squish) GetCount() uint32
- func (s *Squish) GetLast() uint32
- func (s *Squish) GetMessages() *[]MessageListItem
- func (s *Squish) GetMsg(position uint32) (*Message, error)
- func (s *Squish) GetMsgType() EchoAreaMsgType
- func (s *Squish) GetName() string
- func (s *Squish) GetType() EchoAreaType
- func (s *Squish) Init()
- func (s *Squish) SaveMsg(tm *Message) error
- func (s *Squish) SetChrs(c string)
- func (s *Squish) SetLast(l uint32)
- type SquishAttrs
Constants ¶
View Source
const ( AreasSortingDefault = "default" AreasSortingUnread = "unread" )
View Source
const ( EchoAreaMsgTypeJAM EchoAreaMsgType = "JAM" EchoAreaMsgTypeMSG EchoAreaMsgType = "MSG" EchoAreaMsgTypeSquish EchoAreaMsgType = "Squish" EchoAreaMsgTypePasstrough EchoAreaMsgType = "Passtrough" EchoAreaTypeNetmail EchoAreaType = 0 EchoAreaTypeEcho EchoAreaType = 3 EchoAreaTypeLocal EchoAreaType = 4 EchoAreaTypeDupe EchoAreaType = 2 EchoAreaTypeBad EchoAreaType = 1 EchoAreaTypeNone EchoAreaType = 5 )
types
Variables ¶
View Source
var ( // Areas list Areas []AreaPrimitive )
Functions ¶
func AreaHasUnreadMessages ¶
func AreaHasUnreadMessages(area *AreaPrimitive) bool
Types ¶
type AreaPrimitive ¶
type AreaPrimitive interface {
Init()
GetCount() uint32
GetLast() uint32
GetMsg(position uint32) (*Message, error)
GetName() string
GetMsgType() EchoAreaMsgType
GetType() EchoAreaType
SetChrs(string)
GetChrs() string
SetLast(uint32)
DelMsg(uint32) error
SaveMsg(*Message) error
GetMessages() *[]MessageListItem
}
AreaPrimitive interface
type JAM ¶
type JAM struct {
AreaPath, AreaName string
AreaType EchoAreaType
Chrs string
// contains filtered or unexported fields
}
JAM struct
type MSG ¶
type MSG struct {
AreaPath string
AreaName string
AreaType EchoAreaType
Chrs string
// contains filtered or unexported fields
}
MSG struct
func (*MSG) GetMsgType ¶
func (m *MSG) GetMsgType() EchoAreaMsgType
GetMsgType return area msg base type
type MSGAttrs ¶
type MSGAttrs uint16
MSGAttrs MSG attributes
const ( MSGPRIVATE MSGAttrs = 0x0001 MSGCRASH MSGAttrs = 0x0002 MSGREAD MSGAttrs = 0x0004 MSGSENT MSGAttrs = 0x0008 MSGFILE MSGAttrs = 0x0010 MSGFWD MSGAttrs = 0x0020 MSGORPHAN MSGAttrs = 0x0040 MSGKILL MSGAttrs = 0x0080 MSGLOCAL MSGAttrs = 0x0100 MSGHOLD MSGAttrs = 0x0200 MSGXX2 MSGAttrs = 0x0400 MSGFRQ MSGAttrs = 0x0800 MSGRRQ MSGAttrs = 0x1000 MSGCPT MSGAttrs = 0x2000 MSGARQ MSGAttrs = 0x4000 MSGURQ MSGAttrs = 0x8000 )
attributes
type Message ¶
type Message struct {
Area string
AreaObject *AreaPrimitive
MsgNum uint32
MaxNum uint32
DateWritten time.Time
DateArrived time.Time
Attrs []string
ReplyTo uint32
Replies []uint32
Body string
FromAddr *types.FidoAddr
ToAddr *types.FidoAddr
From string
To string
Subject string
Kludges map[string]string
Corrupted bool
}
Message struct
func (*Message) ToEditAnswerView ¶
ToEditAnswerView export view
func (*Message) ToEditForwardView ¶
ToEditForwardView export view
type MessageListItem ¶
type MessageListItem struct {
MsgNum uint32
From string
To string
Subject string
DateWritten time.Time
}
MessageListItem struct
type Squish ¶
type Squish struct {
AreaPath string
AreaName string
AreaType EchoAreaType
Chrs string
// contains filtered or unexported fields
}
Squish struct
func (*Squish) GetMessages ¶
func (s *Squish) GetMessages() *[]MessageListItem
GetMessages get headers
func (*Squish) GetMsgType ¶
func (s *Squish) GetMsgType() EchoAreaMsgType
GetMsgType return area msg base type
type SquishAttrs ¶
type SquishAttrs uint32
SquishAttrs Squish Attributes
const ( SquishPRIVATE SquishAttrs = 0x0001 SquishCRASH SquishAttrs = 0x0002 SquishREAD SquishAttrs = 0x0004 SquishSENT SquishAttrs = 0x0008 SquishFILE SquishAttrs = 0x0010 SquishFWD SquishAttrs = 0x0020 SquishORPHAN SquishAttrs = 0x0040 SquishKILL SquishAttrs = 0x0080 SquishLOCAL SquishAttrs = 0x0100 SquishHOLD SquishAttrs = 0x0200 SquishXX2 SquishAttrs = 0x0400 SquishFRQ SquishAttrs = 0x0800 SquishRRQ SquishAttrs = 0x1000 SquishCPT SquishAttrs = 0x2000 SquishARQ SquishAttrs = 0x4000 SquishURQ SquishAttrs = 0x8000 SquishSCANNED SquishAttrs = 0x00010000 SquishUID SquishAttrs = 0x00020000 SquishSEEN SquishAttrs = 0x00080000 )
attrubutes
Click to show internal directories.
Click to hide internal directories.