Hi all,
Running v1.6 ST quite happily apart from several clients who email in from their mobile devices and the emails don't appear. I get the from+subject but in osticket the email itself is blank.
I'm using email piping using /etc/aliases which is working fine normally.
What I did was added a debug line to the 'api/pipe.php' script that simply appends the raw email to a file so I can track it:
$dump_data=fopen("/tmp/ticket.log", "a");
fwrite($dump_data, $data);
fwrite($dump_data, " --------- \n\n");
fclose($dump_data);
And in the emails that I cannot see, I've seen that they contain no plain text component, only Base64 encoded content. Here is a copy of the emails:
------=_Part_0_1362389462025
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: base64
Content-Disposition: inline
QW5keSwgaXQgYXBwZWFycyBhcyB0aGF0IG1vc3QgcGVvcGxlIGNhbid0IGFjY2VzcyB0aGVpciBl
bWFpbHMuIE1pbmUgYXJlIGNvbWluZyB0byBteSBwaG9uZSwgR2VvZmYgY2FuIGFjY2VzcyBvbiB0
aGUgbGFwIHRvcC4gIFNvcGhpZSBoYXMgb25lIHNvbWV0aGluZyB0byBnZXQgaGVycy4KCgpJIGtl
ZXAgZ2V0dGluZyBhY2Nlc3MgZGVuaWVkLCBzbyBkb2VzIFRlcmVzYSAoY291bGQgYmUgbW9yZSB3
aWRlc3ByZWFkPykKCkNoZWVycwoKLSBTZW50IGZyb20gbXkgSFRDIG9uIDMgLQoK
------=_Part_0_1362389462025
Content-Type: text/html;
charset=utf-8
Content-Transfer-Encoding: base64
Content-Disposition: inline
PHNwYW4gc3R5bGU9ImZvbnQtZmFtaWx5OiBBcmlhbDsiPkFuZHksIGl0IGFwcGVhcnMgYXMgdGhh
dCBtb3N0IHBlb3BsZSBjYW4mIzM5O3QgYWNjZXNzIHRoZWlyIGVtYWlscy4gTWluZSBhcmUgY29t
aW5nIHRvIG15IHBob25lLCBHZW9mZiBjYW4gYWNjZXNzIG9uIHRoZSBsYXAgdG9wLiAmbmJzcDtT
b3BoaWUgaGFzIG9uZSBzb21ldGhpbmcgdG8gZ2V0IGhlcnMuPGJyPjxicj48YnI+SSBrZWVwIGdl
dHRpbmcgYWNjZXNzIGRlbmllZCwgc28gZG9lcyBUZXJlc2EgKGNvdWxkIGJlIG1vcmUgd2lkZXNw
cmVhZD8pPGJyPjxicj5DaGVlcnM8YnI+PGJyPi0gU2VudCBmcm9tIG15IEhUQyBvbiAzIC08YnI+
PGJyPjxicj48L3NwYW4+
------=_Part_0_1362389462025--
---------
As you can see they are just the normal Text and HTMl components but base64 encoded. Is there a patch or fix to help get this content into the ticket? I'm guessing if all else fails I could just run them through base64 -d in the php pipe.php script but this seems an ugly hack.
Any advice?
Cheers
Andy