Skip to contentSkip to conversation

script to send changesets per mail

DISCUSSION Bodo Eggert 1 participant 1 message Mar 14, 2005 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 8 lines · Sam Ravnborg

sub make_message_id
{
my $date = date "+\%s";
chomp($date);
my $pseudo_rand = int (rand(4200));
$message_id = "<$date$pseudo_rand\@kroah.com>";
print "new message id = $message_id\n";
}

Why not

use Email::MessageID;
use Net::Domain qw(hostfqdn);

sub make_message_id()

{
        return Email::MessageID->new(host => hostfqdn());
}