Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientFactory = func() (gmail.GmailClientInterface, error) { return gmail.NewClient(context.Background()) }
ClientFactory is the function used to create Gmail clients. Override in tests to inject mocks.
Functions ¶
func NewCommand ¶
NewCommand returns the mail parent command with subcommands
func SanitizeFilename ¶ added in v1.0.19
SanitizeFilename sanitizes a filename for display, removing potentially dangerous characters while preserving readability.
func SanitizeOutput ¶ added in v1.0.19
SanitizeOutput removes ANSI escape sequences and dangerous control characters from a string to prevent terminal injection attacks. Safe whitespace characters (tab, newline, carriage return) are preserved.
Types ¶
Click to show internal directories.
Click to hide internal directories.