On 2013-03-23 23:39, Frank Ellebrecht wrote:
Am Samstag, den 23.03.2013, 23:24 +0100 schrieb Janos SUTO:
ok, try this: find the piler_id of this message. You can see it
in the maillog or query from the metadata table:
mysql> select piler_id from metadata where id=284;
then issue the following command:
pileraget the-found-piler-id 1
Does it return the attachment?
Yes, it returns the attachment. Diff reports only differences in
whitespace; with diff -bB the original attachment and the one
retrieved
with pileraget are the same.
OK, let's try the following: in model/search/message.php the 62th line
says:
return base64_decode(preg_replace("/\s/", "", $data));
now replace it with the following (only temporarily):
return $data;
then try downloading it again. If it works, I'll find out
how to detect whether it's a base64 encoded message or not.
Janos