Re: Problem with attachments sent through NeoMail interface
Torsten Mueller <[email protected]> Mon, 10 Nov 2003 22:36:25 +0100
| Newsgroups | gmane.mail.neomail.general |
|---|---|
| Message-ID | <[email protected]> |
Jason Marshall schrieb:
> > What is the content of these 113 bytes ?
> >
> > Handling of attachments is done in the subroutine
> > composemessage.
> >
> > As the next step i would do the following:
> > locate in neomail.pl
> > $attcontents = encode_base64($attcontents);
> > below
> > sub composemessage {
> >
> > Replace
> > $attcontents = encode_base64($attcontents);
> >
> > with
> > warn (length($attcontents));
> > $attcontents = encode_base64($attcontents);
> > warn (length($attcontents));
> >
> > So you see in the error log
> > the size of the upload before and after encoding.
> >
> > Mail the results (to the list).
> >
> >
> > Torsten
> >
>
> Torsten,
>
> Here are the contents of the 113 byte file:
>
> # cat jmarshall-session-0.0588562174971266-att0
> Content-Type: application/octet-stream;
> name="ColumbusConvicts2003draft.xls"
> Content-Transfer-Encoding: base64
>
> #
>
> I also made the changes to neomail.pl, and reran my
> test. I find no obvious lines in my stderr.log file
> for my web server, or in the neomail.log file that
> give me length values. I tried attatching the log file
> to a message sent last week, but it was bounced back
> as I had exceeded the maximum message size for the
> list.
>
> Can you give example output of the warn() function
> that I should look for?
In time it would looke like this:
[Wed Nov 5 04:56:47 2003] neomail.pl: 2225 at
/www/kunden/secure.xtremeweb.de/ftp/cgi-bin/webmail/neomail.pl line 1252
, <fh00001C%3A\index.html> line 1.
If you want to find it better, make:
warn ("The size of the upload before encoding");
warn (length($attcontents));
$attcontents = encode_base64($attcontents);
warn ("The size of the upload after encoding");
warn (length($attcontents));
and search for 'The size of the upload' in your
apache error logfile.
Torsten
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/