imap/export/exporter.go
H0llyW00dzZ ab122177c2 Improve [Client] Support Exporting Messages with various formats (#4)
- [+] feat(export): add message exporting functionality with JSON support
- [+] feat(readme): update documentation to include message export feature
- [+] refactor(.gitignore): change ignored files from emails.csv to test.csv and add test.json
- [+] refactor(client): update message handling to use map structure instead of MessageDetails struct

Reviewed-on: #4
Co-authored-by: H0llyW00dzZ <h0llyw00dzz@pm.me>
Co-committed-by: H0llyW00dzZ <h0llyw00dzz@pm.me>
2025-01-24 07:08:59 +00:00

16 lines
377 B
Go

// Copyright (c) 2025 H0llyW00dzZ All rights reserved.
//
// By accessing or using this software, you agree to be bound by the terms
// of the License Agreement, which you can find at LICENSE files.
package export
import (
"io"
)
// Exporter defines an interface for exporting messages
type Exporter interface {
Export(messages []map[string]any, writer io.Writer) error
}