class Maildir::UniqueName

Defined in:

unique_name.cr

Constant Summary

COUNTER_MUTEX = Mutex.new

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

Return a unique file name based on strategy


[View source]

Class Method Detail

def self.counter #

Return a thread-safe increasing counter


[View source]
def self.create #

[View source]
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.


[View source]

Instance Method Detail

def to_s(io : IO) : Nil #

Return the name as a string


[View source]