mailbox

package
v0.0.0-...-4dae465 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Copyright (C) 2023 Benjamen R. Meyer

https://github.com/BenjamenMeyer/go-tb-dedup

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (C) 2023 Benjamen R. Meyer

https://github.com/BenjamenMeyer/go-tb-dedup

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright (C) 2023 Benjamen R. Meyer

https://github.com/BenjamenMeyer/go-tb-dedup

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	// 16K processing buffer
	DetectRecordBufferLength = 16 * 1024
	// 1K read buffer
	ReadBuffer = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Filepath

type Filepath string

type Folderpath

type Folderpath string

type Mailbox

type Mailbox interface {
	Open(filename Filepath) error
	OpenForWrite(filename Filepath, mboxMode int) error
	Close() error

	GetMessages() ([]storage.MailData, error)
	AddMessage(message storage.MailData) error

	GetMessagesReferences() (msgs []storage.MailRecord, err error)
}

func NewMailbox

func NewMailbox() Mailbox

type Mailfolder

type Mailfolder interface {
	Open(folder Folderpath) error
	Close() error

	GetCounts() (fileCount int, folderCount int, err error)
	GetMailFiles() ([]Filepath, error)
	GetSubfolders() ([]Folderpath, error)
}

func NewMailFolder

func NewMailFolder() Mailfolder

Jump to

Keyboard shortcuts

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