Re: post attachments don't work [message #33508 is a reply to message #33454] |
Tue, 05 September 2006 08:44 |
newnumbertwo
Messages: 38 Registered: June 2004
Karma:
|
Member |
|
|
It does not look like the script is recognizing that the email has an attachment, but I'm not sure why. I've checked the structure of the email immediately before it's piped into the maillist.php script, and it definitely has the attachment.
It identifies itself with the Content-Type: header:
Content-Type: multipart/mixed; boundary="------------000506090801060606070709"
(for example)
I see a "case 'multipart/mixed':" line in the function decode_body, and from sticking in debugging errors, I can see that this Content-type is parsed properly, and that the condition '$this->body_sc > 1' is met (line 155), but once it goes into the routine to "// look if message has any attached files" (line 170), it doesn't find any attached files.
When I print out $this->body_s[$i]->headers['content-disposition']
instead of 'attachment' I get 'inline' (line 172).
What's going on here?
[Updated on: Tue, 05 September 2006 08:45] Report message to a moderator
|
|
|