| Data::ID::Maildir - generate maildir-style unique IDs |
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.
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.
the Data::ID::Exim manpage, UUID, the Win32::Genguid manpage, http://cr.yp.to/proto/maildir.html
Andrew Main (Zefram) <zefram@fysh.org>
Copyright (C) 2004, 2007 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.
| Data::ID::Maildir - generate maildir-style unique IDs |