olk15

package
v0.0.0-...-9c1b276 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

package olk15 is my interpretation of outlook files for Mac (.olk15XYZ files)

Index

Constants

This section is empty.

Variables

View Source
var ErrHeaderSize = errors.New("Invalid header size")

Functions

func DecodeUTF8

func DecodeUTF8(b []byte) string

func DecoderDefault

func DecoderDefault(b []byte) (s string)

func DecoderStrip

func DecoderStrip(decoder func(b []byte) string) func(b []byte) string

Types

type CRLM

type CRLM struct {
	Marker      [4]byte // CRLM
	Unknown01   uint32
	RecordCount uint32 // Number of "records" in a section not yet decoded.

}

type ContactManager

type ContactManager struct {
	// contains filtered or unexported fields
}

func NewContactManager

func NewContactManager() (m *ContactManager)

func (*ContactManager) Add

func (m *ContactManager) Add(c *Contacts)

func (*ContactManager) AddFromFile

func (m *ContactManager) AddFromFile(filename string) (err error)

func (*ContactManager) IndexMail

func (m *ContactManager) IndexMail(s string) int

func (*ContactManager) Len

func (m *ContactManager) Len() (l int)

func (*ContactManager) Mail

func (m *ContactManager) Mail(i int) (mail string)

func (*ContactManager) Name

func (m *ContactManager) Name(i int) (name string)

type Contacts

type Contacts struct {
	// contains filtered or unexported fields
}

func ContactsFromFile

func ContactsFromFile(filename string) (c *Contacts, err error)

func NewContacts

func NewContacts() (c *Contacts)

func (*Contacts) IndexMail

func (c *Contacts) IndexMail(s string) int

func (*Contacts) Len

func (c *Contacts) Len() int

func (*Contacts) Mail

func (c *Contacts) Mail(i int) (mail string)

func (*Contacts) Name

func (c *Contacts) Name(i int) (name string)

func (*Contacts) ReadFrom

func (c *Contacts) ReadFrom(r io.Reader) (err error)
type Header struct {
	Magic    [4]byte
	Ignore01 [28]byte
}

type MCXE

type MCXE struct {
}

type Message

type Message struct {
	Header Header
	CRLM   CRLM
	MCXE   MCXE
}
type Message struct {
	Magic          [4]byte
	Version        uint32
	Unknown01      [24]byte
	CRLM           uint32
	Unknown02      uint32
	Unknown03      uint32
	SizeBlock1Size uint32
	SizeBlock2Size uint32 // SizeBlock2Size + SizeBlock1Size = msg size
}

func ParseMessage

func ParseMessage(b []byte) (m *Message, err error)

type String

type String struct {
	Length uint32
	Data   []byte
}

String = 4 byte (le) length + 2*N bytes UTF-8

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL