http://qs321.pair.com?node_id=1078789


in reply to Store Lotus Notes Email

Hi,

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