Versions in this module Expand all Collapse all v0 v0.35.0 Apr 26, 2026 v0.34.0 Apr 21, 2026 Changes in this version + const ErrCodeInternal + const ErrCodeInvalidReq + const ErrCodeNotFound + const ErrCodeParse + const EventConfigReloaded + const EventEmailsUpdated + const EventNewMail + const EventSyncComplete + const EventSyncError + const EventSyncStarted + const MethodArchiveEmails + const MethodDeleteEmails + const MethodExportContacts + const MethodFetchEmailBody + const MethodFetchEmails + const MethodFetchFolders + const MethodGetAccounts + const MethodGetCachedBody + const MethodGetCachedEmails + const MethodGetStatus + const MethodMarkRead + const MethodMoveEmails + const MethodPing + const MethodRefreshFolder + const MethodReloadConfig + const MethodSendEmail + const MethodSendRSVP + const MethodSubscribe + const MethodUnsubscribe + func EnsureRuntimeDir() error + func PIDPath() string + func SocketPath() string + type AccountInfo struct + Email string + ID string + Name string + Protocol string + type ArchiveEmailsParams struct + AccountID string + Folder string + UIDs []uint32 + type AttachmentInfo struct + CalendarData []byte + Encoding string + Filename string + IsCalendarInvite bool + MIMEType string + PartID string + type Conn struct + func NewConn(c net.Conn) *Conn + func (c *Conn) Close() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) ReceiveMessage() (Message, error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) Send(v interface{}) error + func (c *Conn) SendError(id uint64, code int, message string) error + func (c *Conn) SendEvent(eventType string, data interface{}) error + func (c *Conn) SendResponse(id uint64, result interface{}) error + type DeleteEmailsParams struct + AccountID string + Folder string + UIDs []uint32 + type Error struct + Code int + Message string + func (e *Error) Error() string + type Event struct + Data json.RawMessage + Type string + type ExportContactsParams struct + Format string + type FetchEmailBodyParams struct + AccountID string + Folder string + UID uint32 + type FetchEmailBodyResult struct + Attachments []AttachmentInfo + Body string + type FetchEmailsParams struct + AccountID string + Folder string + Limit uint32 + Offset uint32 + type FetchFoldersParams struct + AccountID string + type GetCachedBodyParams struct + AccountID string + Folder string + UID uint32 + type GetCachedEmailsParams struct + Folder string + type MarkReadParams struct + AccountID string + Folder string + Read bool + UIDs []uint32 + type Message struct + Event *Event + Request *Request + Response *Response + func DecodeMessage(raw json.RawMessage) (Message, error) + type MoveEmailsParams struct + AccountID string + DestFolder string + SourceFolder string + UIDs []uint32 + type NewMailEvent struct + AccountID string + Folder string + type PingResult struct + Pong bool + type RefreshFolderParams struct + AccountID string + Folder string + type Request struct + ID uint64 + Method string + Params json.RawMessage + type Response struct + Error *Error + ID uint64 + Result json.RawMessage + type SendEmailParams struct + AccountID string + Attachments map[string][]byte + Bcc []string + Body string + Cc []string + EncryptPGP bool + EncryptSMIME bool + HTMLBody string + InReplyTo string + References []string + SignPGP bool + SignSMIME bool + Subject string + To []string + type SendRSVPParams struct + AccountID string + InReplyTo string + OriginalICS []byte + References []string + Response string + type StatusResult struct + Accounts []string + PID int + Running bool + Uptime int64 + type SubscribeParams struct + AccountID string + Folder string + type SyncCompleteEvent struct + AccountID string + EmailCount int + Folder string + type SyncErrorEvent struct + AccountID string + Error string + Folder string + type SyncStartedEvent struct + AccountID string + Folder string + type UnsubscribeParams struct + AccountID string + Folder string