Re: Problem with attachments sent through NeoMail interface
Jason Marshall <[email protected]> Mon, 10 Nov 2003 07:34:11 -0800 (PST)
| Newsgroups | gmane.mail.neomail.general |
|---|---|
| Message-ID | <[email protected]> |
--- Torsten Mueller <[email protected]> wrote: > Jason Marshall schrieb: > > > Thank you for your prompt reply. I have done as > you > > asked and here is the result: > > > > -rw-rw---- 1 root root 13 Nov 4 > > 21:14 jmarshall-session-0.275709430295141 > > -rw-rw---- 1 root root 113 Nov 4 > > 21:14 jmarshall-session-0.275709430295141-att0 > > > > The attachment I attempted to upload should be on > the > > order of 20K, not the 113 bytes displyed. This is > > consistent with what the recipient gets as well. A > > minimal, stripped file, named the same as the > original > > attachment. > > > > This result tells me that my permissions are > correct, > > as nothing would be written otherwise, right? > > Agree. > 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? Jason Marshall __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ------------------------------------------------------- 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/