First off, the idea for this script is great, and it does work beautifully...but it took a little work to get it working for my phone.
I've just spent about 4 days trying to get this to work with my phone (Cingular CA USA). In the course of getting this working, I've found a couple of things that would improve the script:
Line 233:
if($part->ctype_primary == 'text') // In order to get it working, I had to do this:
if(strtolower($part->ctype_primary) == 'text')
Same thing on the image check. Stupid Cingular puts all of their encoding information in CAPS.
This script wasn't the only one that had this little bug. The PEAR mimeDecode.php script had the same problem:
line 495:
switch ($encoding) { // Had to change this to:
switch (strtolower($encoding)) {
With those two changes, it worked perfectly. Hopefully this will save some people some time in getting this totally cool feature of s9y working!
mail2s9y.php
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: mail2s9y.php
Hi!
Thanks a lot for that report. I have changed it in my mail2s9y.phps file and updated the s9y wiki page for the new version!
Regards,
Garvin.
Thanks a lot for that report. I have changed it in my mail2s9y.phps file and updated the s9y wiki page for the new version!
Regards,
Garvin.