POP3 Fetching stops working when using german umlaut äöüß in "mail from"

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Kaffeeopfer
Posts: 4
Joined: Tue Apr 11, 2017 6:37 am

POP3 Fetching stops working when using german umlaut äöüß in "mail from"

Post by Kaffeeopfer »

Script URL: hesk_pop3.php
Version of script: HESK 2.7.2
Hosting company: LOCAL
php: 7.0.15
MySQL-Version: 5.7.17
What terms did you try when SEARCHING for a solution: POP3, UMLAUT, Email-to-Ticket, Parsing

POP3 Fetching works fine until a user with umlaut in "mail from" sends a ticket.

Here in this example
User Jürgen P**** send to IT.Ticket@******.de

The mail header looks like this

Received: from mail.******.local ([::1]) by
mail.******.local ([::1]) with mapi id 14.03.0319.002; Mon, 10
From: =?iso-8859-1?Q?P****=2C_J=FCrgen?= <Juergen.P****@******.de>
To: IT Ticket <IT.Ticket@******.de>
Subject: Testmail....
Thread-Topic: Testmail....

The debug of
******/inc/mail/hesk_pop3.php
shows:

#!/usr/bin/php -q
Connected to the POP3 server "mail.******.local".
User "IT.Ticket" logged in.
There are 2 messages in the mail box with a total of 10301 bytes.
Parsing message 1 of 2.



While parsing the mail ist stops working.
Is it possible to change the parsing options to except german umlaute?

Thanks a lot
Kaffeeopfer
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 Fetching stops working when using german umlaut äöüß in "mail from"

Post by Klemen »

Please send a sample email with this problem to pop3test ...at... hesk ...dot... com and I will have a look.
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
Kaffeeopfer
Posts: 4
Joined: Tue Apr 11, 2017 6:37 am

Re: POP3 Fetching stops working when using german umlaut äöüß in "mail from"

Post by Kaffeeopfer »

Testmail was send
Sender: Jürgen.P****@******.de
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 Fetching stops working when using german umlaut äöüß in "mail from"

Post by Klemen »

It imported just fine in my test setup?

Image

If you login into webmail, do you actually have 2 messages in the mailbox or only one?
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
Kaffeeopfer
Posts: 4
Joined: Tue Apr 11, 2017 6:37 am

Re: POP3 Fetching stops working when using german umlaut äöüß in "mail from"

Post by Kaffeeopfer »

Hello Klemen

I think it's a problem in combination with our Exchange Server
Internaly we got a "=?iso-8859-1?Q?P****=2C_J=FCrgen?= <Juergen.P****@******.de" as Sender

The testmail you got was send via our sendmail proxy after virus scanning the mail.
The sender field is reduced to "<Juergen.P****@******.de"
So there is no problem for your import.

Can you tell where the mail parsing happens ?
So I can change it on my own.

Thanks
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 Fetching stops working when using german umlaut äöüß in "mail from"

Post by Klemen »

The "From" in the email you sent was actually set to this:

Code: Select all

From: =?iso-8859-1?Q?Pauer=2C_J=FCrgen?= <Juergen.Pauer@DELETED.de>
You can also see from the screenshot in my previous post that sender name was parsed correctly.

Files responsible for the parsing are:
- inc/mail/email_parser.php
- inc/mail/mime_parser.php
- inc/pipe_functions.inc.php
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