[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bin file created on *each* run of MHonArc



On October 3, 2001 at 15:03, Brett Charbeneau wrote:

> /usr/bin/mhonarc -outdir /home/httpd/html/ /var/spool/mail/MAILBOX
> 
> 	Everything works great EXCEPT that every time the above command is
> executed I get a .bin file for each attachment in the mailbox on EACH
> run. As I write there are 3 attachments in there. On the first run I get 3
> .bin files in the output directory. On the second, I get 6 .bin files, and
> on the third I get 9 .bin - clearly I've missed something. The attachments
> are Word and WordPerfect documents sent from Outlook and Pine email
> clients in the default manner.

If you are just updating and existing archive, use the -add option.
This will avoid the problem you are seeing and will make processing
your mailbox file faster.  Without the -add, MHonArc is creating a new
archive from scratch each time.  Attachment files get duplicated
because MHonArc tries to avoid overwriting existing non-message files
in a directory since it does not know the nature of existing files.

If you want a new archive created each time, do something like the
following:

  /bin/rm /home/httpd/html/*
  /usr/bin/mhonarc -outdir /home/httpd/html /var/spool/mail/MAILBOX

To avoid any duplicate attachment files.

--ewh


[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]