khippy has asked for the wisdom of the Perl Monks concerning the following question:
Hi knowledgers,
Imagine developing a webmailer to your needs sitting on the
popserver itself - so, the cgi has direct access to the mailboxes.
When there is a mail with e.g. an attachement which is a jpg
file to be shown, the quick and dirty method is to create a
temporary file and an image-tag in the dynamic html-code pointing
to that file.
My knowledge of perl is still minor but my phantasy is major ;) so I imagine perl parsing that file bytewise and "stream" the jpg-attachement somehow, avoiding creating a temporary file. This is a new idea I am wondering about, so, no code is written, yet. I'd appreciate statements about it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: avoid temporary files when building a webmailer
by Masem (Monsignor) on Nov 15, 2001 at 17:16 UTC | |
|
Re: avoid temporary files when building a webmailer
by John M. Dlugosz (Monsignor) on Nov 16, 2001 at 00:27 UTC | |
|
Re: avoid temporary files when building a webmailer
by khippy (Scribe) on Nov 15, 2001 at 17:59 UTC | |
by mischief (Hermit) on Nov 15, 2001 at 19:09 UTC | |
by khippy (Scribe) on Nov 15, 2001 at 20:26 UTC | |
by McD (Chaplain) on Nov 16, 2001 at 00:28 UTC |