assuming you use the script here (as guessed by hippo), try to switch to the reply by NateTut and use his variant. There the filename is set by the line:

my $FileName = sprintf("%04d_Message.txt", $num);
You want to change this, e.g. by putting the subject in front
my $FileName = $subdir ."_". sprintf("%04d_Message.txt", $num);
If you want to access the received-date of the mail, you can have a look at $doc->{received}->[0]. This string contains the date/time (and more, so you have to extract it).

HTH, Rata

In reply to Re: Store Lotus Notes Email by Ratazong
in thread Store Lotus Notes Email by gawilcox

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":