Andrew Main (Zefram)

NAME

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

SYNOPSIS

        use Data::ID::Maildir qw(maildir_id);

        $id = maildir_id;

DESCRIPTION

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

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.

BUGS

Can theoretically generate duplicate message IDs during a leap second.

SEE ALSO

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

AUTHOR

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

COPYRIGHT

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

LICENSE

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