class

Maildir::UniqueName

Inherits Reference / Object

Constants

COUNTER_MUTEX = Mutex.new

Constructors

new

Return a unique file name based on strategy

Source

Class methods

counter

Return a thread-safe increasing counter

Source
create
Source
hostname

The hostname, with the characters that are not allowed in a maildir filename escaped as the maildir spec prescribes. Looked up only once, as it can't meaningfully change during the lifetime of a process.

Source

Instance methods

to_s(io : IO) : Nil

Return the name as a string

Source