Re: Problem with attachments sent through NeoMail interface
Torsten Mueller <[email protected]> Wed, 05 Nov 2003 05:06:31 +0100
| Newsgroups | gmane.mail.neomail.general |
|---|---|
| Message-ID | <[email protected]> |
Please do not reply in PM, use the mailinglist.
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
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/