Documentation
¶
Overview ¶
smtpattach/store.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PurgeOlderThan ¶
PurgeOlderThan deletes attachments stored before the given duration. Call periodically if you want automatic cleanup, e.g. go PurgeLoop(1 * time.Hour)
func WriteToTempFile ¶
func WriteToTempFile(a *Attachment) (string, error)
WriteToTempFile writes an attachment to a real temp file and returns the path. Useful if you want to hand the file off to another process.
Types ¶
Click to show internal directories.
Click to hide internal directories.