class
Maildir::UniqueName
- Maildir::UniqueName
- Reference
- Object
Defined in:
unique_name.crConstant Summary
-
COUNTER_MUTEX =
Mutex.new
Constructors
-
.new
Return a unique file name based on strategy
Class Method Summary
-
.counter
Return a thread-safe increasing counter
- .create
-
.hostname : String
The hostname, with the characters that are not allowed in a maildir filename escaped as the maildir spec prescribes.
Instance Method Summary
-
#to_s(io : IO) : Nil
Return the name as a string
Constructor Detail
Class Method Detail
def self.hostname : String
#
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.