# it. This should be harmless.
mkfolder($mhfolder);
- # XXX: Grab the 'mhpath new' algorithm and implement it internally.
+ # XXX: Grab the 'mhpath new' algorithm and implement it
+ # internally. Furthermore, use the maildir delivery algorithm
+ # (though slightly different: get filename, if exists increment
+ # and start over, create file, if fail bomb) to make sure we
+ # really do get a new message file.
$mhmsg = `mhpath +$mhfolder new`;
chomp($mhmsg);
$msgnum = basename($mhmsg);