Documentation ¶
Index ¶
- func AddUserHash(username string) error
- func Authenticate() (string, error)
- func BuildMisfinURL(senders []string, subject, body string) string
- func CheckTempPassword(password string) error
- func ClearTempPasswords(username string) error
- func CountTags(tagName, username string) (string, error)
- func CropToLastEncodedBoundary(urlStr string, maxLength int) string
- func CustomQueryEscape(input string) string
- func FormatSender(sender string) string
- func GenerateFilename(timestamp time.Time, sender string) string
- func GenerateID(timestamp time.Time, sender string) string
- func GenerateOneTimePassword(username string) (string, error)
- func GetMailPreview(message Skymail) (string, error)
- func GetMessageLinkLine(message Skymail, msgid, username string) (string, error)
- func HasTag(msgid, tagName, username string) (bool, error)
- func IsolateAddress(input string) string
- func ListTags(username string) ([]string, error)
- func PrependPrefixToLines(body string) string
- func PrintLinkAndPreview(msgid, username string, space bool) (string, time.Time, error)
- func Tag(msgid, tagName, username string, sync bool) error
- func Untag(msgid, tagName, username string, sync bool) error
- func UntagAll(msgID, username string) error
- func WalkTag(tagName, username string, space bool, n ...int) error
- type Preview
- type Skymail
- type UserHashes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserHash ¶
func Authenticate ¶
func BuildMisfinURL ¶ added in v1.2.0
func CheckTempPassword ¶
func ClearTempPasswords ¶ added in v1.2.0
func CountTags ¶
CountTags counts the number of symlinks in the directory for a given tag. It returns the count as a string in the format "(n)" or an empty string if the directory is empty.
func CropToLastEncodedBoundary ¶ added in v1.2.0
CropToLastEncodedBoundary ensures the URL string doesn't cut off in the middle of a percent-encoded sequence.
func CustomQueryEscape ¶ added in v1.2.0
CustomQueryEscape ensures that spaces are encoded as %20 instead of +.
func FormatSender ¶
func GenerateOneTimePassword ¶
GenerateOneTimePassword generates a one-time use password, writes its hash to a YAML file along with the username, and returns the generated password.
func GetMailPreview ¶
func GetMessageLinkLine ¶
GetMessageLinkLine Create message link line
func IsolateAddress ¶
func PrependPrefixToLines ¶ added in v1.2.0
func PrintLinkAndPreview ¶
Types ¶
type Skymail ¶
type Skymail struct { Senders []string Recipients []string Timestamps []time.Time Subject string MessageBody string }
func ParseSkymail ¶
type UserHashes ¶
Click to show internal directories.
Click to hide internal directories.