Link to home
Start Free TrialLog in
Avatar of guess18
guess18

asked on

Emails to OSticket getting cut off when there is a ' or "

Hi there,

I have OSticket running and I believe it uses the php mail function.  When I receive email form 1 client (Mac, entourage) it cuts the message off at the first " or '  in the message.  If i copy the original and send from Outlook there is no problems.  Is this an encoding issue or something that can be corrected on my end or do I have to get the client to change something.

Mike
Avatar of Richard Quadling
Richard Quadling
Flag of United Kingdom of Great Britain and Northern Ireland image

I don't run OSTicket, and as such have some questions.

I tried to download OSTicket, but V1 is discontinued and V2 is coming. http://www.osticket.com/downloads.php

The system must somehow get the email from the mail server.

You need to examine this script to see if you can get the mail as soon as it arrives into the script and before any processing. At that stage see if the entire email is present.

If it is, then the problem is withing OSTicket.

If not then the problem lies between the client and the mail server OR the mail server and the method PHP uses to read the mail.

But without any source, this is a bit difficult to deal with.
Avatar of guess18
guess18

ASKER

Thanks for the response.  Currently I am running a windows scheduled task to fetch the email from this post http://www.osticket.com/forums/showthread.php?t=349&highlight=pop3+fetch 

You can download version 1.3.1 from this post http://www.osticket.com/forums/showthread.php?t=1362&highlight=download+1.3.1

I believe its the script that is causing the errors because I setup that POP account to forward a copy to my email address incase something like this happens.  The copy I receive is fine in Outlook 2003.  For some reason its just from this one client that is sending mail from Entourage in Mac.

Thanks,

Mike
ASKER CERTIFIED SOLUTION
Avatar of Richard Quadling
Richard Quadling
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
     while ($curmsg <= @imap_num_msg($mbox)) {
            echo '<br />' . __FILE__ . ':' . __LINE__ . ": <b>Message #$curmsg</b> : " . imap_body($mbox, $curmsg) . '<hr /><br /><br />';
            $body = get_part($mbox, $curmsg, "TEXT/PLAIN");


Try this one first. See if the entire message is visible.

If you are running this manually you should see the message on the screen.