Documentation ¶
Overview ¶
thread is an implementaiton of jwz.org/doc/threading.html
Index ¶
- type Address
- type Backend
- type Config
- type Connection
- type Email
- type JmapClient
- func (c *JmapClient) AddConnection(conn *Connection)
- func (c *JmapClient) Connect() error
- func (c *JmapClient) ListMailboxes() ([]Mailbox, error)
- func (c *JmapClient) Name() string
- func (c *JmapClient) RemoveConnection(conn *Connection)
- func (c *JmapClient) Search(limit int, offset int, query []string) (uint64, []Email, error)
- type Mailbox
- type Server
- type ThreadedEmail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Log ¶
func (c *Connection) Log(format string, v ...any)
func (*Connection) Serve ¶
func (c *Connection) Serve() error
type Email ¶
type Email struct { Type string `msgpack:"type,omitempty"` Id string `msgpack:"id"` Subject string `msgpack:"subject"` MessageId string `msgpack:"message_id"` References []string `msgpack:"references"` ReplyTo []Address `msgpack:"reply_to"` From []Address `msgpack:"from"` To []Address `msgpack:"to"` Cc []Address `msgpack:"cc"` Bcc []Address `msgpack:"bcc"` Mailboxes []string `msgpack:"mailbox_ids"` Keywords []string `msgpack:"keywords"` Size uint `msgpack:"size"` Date int64 `msgpack:"date"` }
func (Email) StrippedSubject ¶
type JmapClient ¶
type JmapClient struct {
// contains filtered or unexported fields
}
func NewJmapClient ¶
func NewJmapClient(name string, url *url.URL) (*JmapClient, error)
func (*JmapClient) AddConnection ¶
func (c *JmapClient) AddConnection(conn *Connection)
func (*JmapClient) Connect ¶
func (c *JmapClient) Connect() error
Connect to the remote server. If the Session object is available in the cache, then this only sets up the Listener for remote changes
func (*JmapClient) ListMailboxes ¶
func (c *JmapClient) ListMailboxes() ([]Mailbox, error)
func (*JmapClient) Name ¶
func (c *JmapClient) Name() string
func (*JmapClient) RemoveConnection ¶
func (c *JmapClient) RemoveConnection(conn *Connection)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
type ThreadedEmail ¶
type ThreadedEmail struct { Email `msgpack:"email"` Replies []*ThreadedEmail `msgpack:"replies"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.