On 1/9/07, ara.t.howard / noaa.gov <ara.t.howard / noaa.gov> wrote:
> >
> > loader = TMail::UNIXMbox.new( 'mailbox' )
>
> at_exit{ loader.close }
>
> you may also check to see if 'new' takes a block - not sure if it does.
> either way, the mbox can still be truncated if your process is 'kill -9'd.
> for that reason i generally impliment a transaction on top of tmail's.

Ah - thanks! I thought the each_port block would close the file.

martin