POP3 - Email parsing problem

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
inka
Posts: 10
Joined: Thu Sep 13, 2012 10:37 am

POP3 - Email parsing problem

Post by inka »

Version of script: 2.4.1
What terms did you try when SEARCHING for a solution:

Write your message below:

I have one more question regarding the POP3 Fetching, if its not a problem.

I made a page with a php page with a form in which the user can choose and select different options.
The form sends an email to an email address.
Until now works great.

Now, I would like to import that email to a ticket.
POP3 fetching works if I send a regular email from my email address but gives the following error when reads the email from the form:
There are 1 messages in the mail box with a total of 781 bytes.
Parsing message 1 of 1.
Ticket NOT inserted - may be duplicate, blocked or an error.

Could you be so kind and help me what should I avoid or change to achieve this?
An email sent by the form looks like this (Message details view):
RFC822 Message body
Return-Path: <something@something.com> Delivered-To: something@something.com Received: (qmail 1101 invoked by uid 48); 19 Sep 2012 12:03:59 -0000 Date: 19 Sep 2012 12:03:59 -0000 Message-ID: <20120919120359.1100.qmail@web.something.com> To: something@something.com Subject: Teszt teszt X-PHP-Originating-Script: 7799:livrare.php MIME-Version: 1.0 Content-type: text/html; charset=UTF-8 From: test@test.com <b>Teszt teszt</b>, test@test.com <br /> <br /> Cerere de <b>DIGITIZARE</b>.<br /> Tip document: CARTE. <br /> Patrimomiu: nu<br /> Autor: Mihai Eminescu<br /> Titlu: Povești șțăî<br /> București, 1990, Volumul 2 Cota: 592582<br /> Paginile: 12 - 32<br /> Scanare: partiala. Dimensiune/format: A3, jpg, 300 dpi

Thank you again!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 - Email parsing problem

Post by Klemen »

You can try debugging it like this:

- open inc/pipe_functions.inc.php in a HTML editor
- replace each

Code: Select all

return NULL;
with

Code: Select all

die("Error: X");
where "X" is a different number. For example replace first return NULL; with die("Error: 1");, second one with die("Error: 2"); etc.

Then run POP3 fetching and see where the script ends - which error it says and what the lines above that error code are.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
inka
Posts: 10
Joined: Thu Sep 13, 2012 10:37 am

Re: POP3 - Email parsing problem

Post by inka »

Thank you very much!
I found the problem. It seems that the "From:" field was somehow in a wrong place.

BTW, is it possible to assign a category to the tickets from emails?
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 - Email parsing problem

Post by Klemen »

Not in the current version, no, but planned.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply