in reply to Re: dealing with attachments (again)
in thread dealing with attachments (again)

Hi..

1 question about the code: what happends if the file alredy exists on the temp. directory? it looks like the mime::parser object is creating the file.. how do I get the object not to overwrite the existing file?

Thanks..

  • Comment on RE: Re: dealing with attachments (again)

Replies are listed 'Best First'.
RE: RE: Re: dealing with attachments (again)
by httptech (Chaplain) on May 26, 2000 at 17:41 UTC
    Yes, it does overwrite existing files. You could probably change this behavior by writing a subclass for Mime::Parser to override some of the built-in functions it uses where the filename is determined, but that's beyond the scope of a snippet I think.