Data::ID::Maildir - generate maildir-style unique IDs
use Data::ID::Maildir qw(maildir_id); $id = maildir_id;
This module exports one function, maildir_id, which generates maildir-style unique IDs.
maildir_id
Generates a maildir-style unique ID. The ID is based on the time, process ID, and hostname; it is guaranteed to be unique among IDs generated by this algorithm provided the hostname is unique among hosts using this algorithm. The hostname may be specified to the function if it is necessary to override it.
Can theoretically generate duplicate message IDs during a leap second.
Data::ID::Exim, UUID, Win32::Genguid, http://cr.yp.to/proto/maildir.html
Andrew Main (Zefram) <zefram@fysh.org>
Copyright (C) 2004, 2007, 2010, 2011, 2017 Andrew Main (Zefram) <zefram@fysh.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Data::ID::Maildir, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::ID::Maildir
CPAN shell
perl -MCPAN -e shell install Data::ID::Maildir
For more information on module installation, please visit the detailed CPAN module installation guide.