[Mimedefang] tiny patch for gen_msgid_header()

Oliver Schulze L. oliver at samera.com.py
Mon Jul 9 19:19:36 EDT 2007


Hi David,
reading the documentation for gen_msgid_header(), I noted that the desired
output when NOQUEUE is:
number.number at hostname

But it actually prints:
number.0.number at hostname
this is because of the rand() function.

So this line solve that issue:
  $qid = rand() if ($qid eq "NOQUEUE");
+  $qid =~ s/^0\.//; # delete the leading 0.

HTH
Oliver

-- 
Oliver Schulze L.   | http://tinymailto.com/oliver  
Asuncion - Paraguay | http://www.solojuegos.mobi    




More information about the MIMEDefang mailing list