POP3 fetch ignores some emails

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
admec
Posts: 15
Joined: Thu Feb 25, 2016 1:46 pm

POP3 fetch ignores some emails

Post by admec »

Script URL:
Version of script: 2.6.5
Hosting company: Own
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: POP3 fetch

Write your message below:

Hi... I have encountered a strange behavior from the POP3 fetch function. It's set up to get emails from a Gmail account. It works normally fine, with one exception. when i get emails som one perticular sender, the POP3 fetch totally ignores them. All other emails send to the account is fetched and made into a ticket.

Is there something in the POP3 scripts that ignores some type of emails or texts in the email that would create this behavior.

All the emails that is not getting fetched is coming from an email address like this: do_not_reply@xxxx.xx

I have activated debug, but where can I see that happens when it logs on to the account to fetch emails? is there some sort of logfile?

Sincerley

Erling Christensen
admec
Posts: 15
Joined: Thu Feb 25, 2016 1:46 pm

Re: POP3 fetch ignores some emails

Post by admec »

When i run the hesk_pop3.php script in a browser i get this:

Connected to the POP3 server "pop.gmail.com".
User "*********@*********" logged in.
There are 0 messages in the mail box with a total of 0 bytes.
Disconnected from the POP3 server "pop.gmail.com".

When i log on to the mailbox and check, there is right now 10 unread messages.

So some how it can't see new messages from this particular sender.

_______
After a lot of different setting changes, i finally got this:

Connected to the POP3 server "pop.gmail.com".
User "pedelweb@mitvuc.dk" logged in.
There are 10 messages in the mail box with a total of 8703209 bytes.
Parsing message 1 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 2 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 3 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 4 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 5 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 6 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 7 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 8 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 9 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Parsing message 10 of 10.
Ticket NOT inserted - may be duplicate, blocked or an error.


Disconnected from the POP3 server "pop.gmail.com".


There are no duplicate tickets, and I have now filter that blocks anything.

How do I see what error HESK_POP3.PHP think there is??
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 fetch ignores some emails

Post by Klemen »

Hi,

This is indeed an issue with the "do_not_reply@" email address.

Try this:

1. open file inc/pipe_functions.inc.php in a powerful text editor, such as Notepad++

2. delete this code:

Code: Select all

	// Check noreply email addresses
	if ( preg_match('/not?[\-_]reply@/i', $tmpvar['email']) )
	{
		return true;
	}
3. save, upload and test

Does that fix the issue?
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
admec
Posts: 15
Joined: Thu Feb 25, 2016 1:46 pm

Re: POP3 fetch ignores some emails

Post by admec »

That did fix the problem.

After an disable and reenable og POP3 on the gmail account it fetches the mails and creates them as tickets.

Thanks for the help. I would't have found that code on my own :)
Post Reply