script to send changesets per mail
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]
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());
}