Silvester Roessner wrote:
Hello,
The problem is: I call mhonarc from a perl script to add
exactly one message a time to an archiv. Now I want to know the
name of the file mhonarc has created for this message.
One solution I know is to search all existing message files in an
archive for the subject, from , ... . But this is slow.
Any suggestions?
How about checking the mhonarc.db file for $NumOfMsgs.
o01(0) /local/mail/lists/mhonarc > grep '^$NumOfMsgs' 1998-02/.mhonarc.db
$NumOfMsgs='54';
o01(0) /local/mail/lists/mhonarc > ls 1998-02/msg00054.html
ls: 1998-02/msg00054.html: No such file or directory
o01(1) /local/mail/lists/mhonarc > ls 1998-02/msg00053.html
1998-02/msg00053.html
Message number is zero based to last one is $NumOfMsgs-1.
Achim
Thanks,
Silvester R"o"sner