Data::ID::Maildir - generate maildir-style unique IDs


NAME

Data::ID::Maildir - generate maildir-style unique IDs

Back to Top


SYNOPSIS

        use Data::ID::Maildir qw(maildir_id);
        $id = maildir_id;

Back to Top


DESCRIPTION

This module exports one function, maildir_id, which generates maildir-style unique IDs.

Back to Top


FUNCTIONS

maildir_id
maildir_id(HOSTNAME)

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.

Back to Top


BUGS

Can theoretically generate duplicate message IDs during a leap second.

Back to Top


SEE ALSO

the Data::ID::Exim manpage, UUID, the Win32::Genguid manpage, http://cr.yp.to/proto/maildir.html

Back to Top


AUTHOR

Andrew Main (Zefram) <zefram@fysh.org>

Back to Top


COPYRIGHT

Copyright (C) 2004, 2007 Andrew Main (Zefram) <zefram@fysh.org>

Back to Top


LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Back to Top

 Data::ID::Maildir - generate maildir-style unique IDs