in reply to avoid temporary files when building a webmailer

Excellent, thanx for the help, this will avoid problems, when building the script (headerstuff, etc.). Still unsolved is the fact from grepping the data from the file. Let me explain:
Assumed you already can handle each mail in the mailboxfile, now there is a mail which contains a jpg attachement, which is, indeed part of the bodytext and identified by boundaries and here comes the trick: How to read *only* the attachement data from the file?


--
there are no silly questions
killerhippy
  • Comment on Re: avoid temporary files when building a webmailer

Replies are listed 'Best First'.
Re: Re: avoid temporary files when building a webmailer
by mischief (Hermit) on Nov 15, 2001 at 19:09 UTC
    You might want to have a look at the MIME modules on CPAN. They should do what you want.

      I have looked at Mime::Tools to get an impression of the mime-tools. At the first look it seemed nice, it gives a nice surface to get access to all parts of the mail.
      But, unfortunately, I have found the following:

      ..."Use of a temp file during parsing

      Why not do everything in core? Although the amount of core available on even a modest home system continues to grow, the size of attachments continues to grow with it. I wanted to make sure that even users with small systems could deal with decoding multi-megabyte sounds and movie files. That means not being core-bound."...



      This exactly bypasses my goal, *not* to create a tempfile. BTW, there is no need to show multi-megabyte files in whatever audio or videoformats for my needs... a picture with maxsize 800x600 or so will be the top size.

      Thanx for the advice, but this is a special case, any ideas left?


      --
      there are no silly questions
      killerhippy