Was this ever resolved;

I am using IMAP to pull emails to create tickets and my tickets comes up with (empty) as part of the body and no attachment.

here is a copy of the message header:
Received: from xxxxxx (10.111.2.201) by
Sxxxxxxxxx (10.111.2.202) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id
15.1.1466.3 via Mailbox Transport; Wed, 17 Apr 2019 16:33:11 -0500
Received: from xxxxxxxxxxxxx (10.111.2.201) by
xxxxxxxxxxxxx (10.111.2.201) with Microsoft SMTP Server
(version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id
15.1.1466.3; Wed, 17 Apr 2019 16:33:10 -0500
Received: from xxxxxxxxxxxx ([fe80::3562:e9cb:b4bf:5fc3]) by
SPWCIGEXC01.admin.gov.ky ([fe80::3562:e9cb:b4bf:5fc3%18]) with mapi id
15.01.1466.003; Wed, 17 Apr 2019 16:33:10 -0500
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
From: "Garwood, Clayton" <xxxx>
To: CorisTickets <xxx>
Subject: FW: CORIS Setup
Thread-Topic: CORIS Setup
Thread-Index: AdTbXHRXurtiH0K9QsmrX1TZ5buN9QIwk4jwAV5QjUAAVhjbcAA9KXJgAMKcUsAALcLAMAA6SJEQAPJJMvAAQxMkQA==
Importance: high
X-Priority: 1
Date: Wed, 17 Apr 2019 16:33:10 -0500
Message-ID: <45bd4fe4fa6d477d88db15c75650efc4@xxxxx>
References: <80B7E3DF1D183944A353FDC920ACF5DD27C872F1@FCBDSAMBX02.WI.FCIB.com>
<80B7E3DF1D183944A353FDC920ACF5DD3A20A299@FCBDSAMBX02.WI.FCIB.com>
In-Reply-To: <80B7E3DF1D183944A353FDC920ACF5DD3A20A299@FCBDSAMBX02.WI.FCIB.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator: <45bd4fe4fa6d477d88db15c75650efc4@xxxxx>
MIME-Version: 1.0
X-MS-Exchange-Organization-MessageDirectionality: Originating
X-MS-Exchange-Organization-AuthSource:
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-Originating-IP: [10.111.2.7]
X-MS-Exchange-Organization-Network-Message-Id: 48597762-9b2b-4ddc-88d3-08d6c37c49e5
Return-Path: xxxxxxxxxxx
X-MS-Exchange-Organization-AVStamp-Enterprise: 1.0
X-EXCLAIMER-MD-CONFIG: 294acb16-5d1c-4f29-a949-025f674e1975
X-EXCLAIMER-MD-CONFIG: 25fce911-deb7-4e56-b8fd-69dd9087c441
X-MS-Exchange-Transport-EndToEndLatency: 00:00:01.4428295
X-MS-Exchange-Processed-By-BccFoldering: 15.01.1466.003

Please assist

    ntozier

    A bit more backgroud:

    The info provided above was just the header of the email.

    I did note that the problems occurs when the email has an attachment.

    I did note the content type of the email which is
    Content-Type: application/ms-tnef; name="winmail.dat"

    I also received the following message from the PHP CLI

    PHP Warning: imap_fetchstructure(): No body information available in C:\Program Files\Apache Software Foundation\Apache2.4\htdocs\ost\include\class.mailfetch.php on line 677
    PHP Warning: Invalid argument supplied for foreach() in C:\Program Files\Apache Software Foundation\Apache2.4\htdocs\ost\include\class.mailfetch.php on line 757

    Please find a copy of the actual email has a pdf attachment.

    I'll ask the devs to take a look at this.

    You can try replacing the mime decode file with the stock mime decode php file which is the only thing that has ever fixed this kind of issue for me.

      Write a Reply...