all repos — postern @ main

Modern mail management

internal/model/message.go (view raw)

 1package model
 2
 3import (
 4	"context"
 5	"database/sql"
 6)
 7
 8type Message struct {
 9	UID               uint32
10	ModSeq            uint32
11	BlobHash          string
12	InternalDate      string
13	Flags             []string
14	RFC822Size        int64
15	EnvelopeDate      sql.NullString
16	EnvelopeSubject   sql.NullString
17	EnvelopeFrom      sql.NullString
18	EnvelopeSender    sql.NullString
19	EnvelopeReplyTo   sql.NullString
20	EnvelopeInReplyTo sql.NullString
21	EnvelopeTo        sql.NullString
22	EnvelopeCc        sql.NullString
23	EnvelopeBcc       sql.NullString
24	EnvelopeMessageID sql.NullString
25	ServerSeq         func(ctx context.Context) (uint32, error) // lazy evaluation
26}