export

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package export handles file export operations such as creating zip archives of email attachments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBytesLong

func FormatBytesLong(b int64) string

FormatBytesLong formats bytes with full precision for export results.

func SanitizeFilename

func SanitizeFilename(s string) string

SanitizeFilename removes or replaces characters that are invalid in filenames.

Types

type AttachmentResult

type AttachmentResult struct {
	Result string
	Err    error
}

AttachmentResult contains the outcome of an attachment export operation.

func Attachments

func Attachments(zipFilename, attachmentsDir string, attachments []query.AttachmentInfo) AttachmentResult

Attachments exports the given attachments into a zip file. It reads attachment content from attachmentsDir using content-hash based paths.

Jump to

Keyboard shortcuts

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