ddeboer / imap

Object-oriented, fully tested PHP IMAP library
MIT License
890 stars 255 forks source link

Mail with e-sign #467

Closed piernik closed 4 years ago

piernik commented 4 years ago

I have email that is e-sign. Parser don't see any contents only one attachment smime.p7m.

Here is header

Return-Path: <Roxxxx.Filixxxxx@warszawa.lasy.gov.pl>
Received: from mail2.lasy.gov.pl (212.244.241.4) (HELO mail2.lasy.gov.pl)
 by iqxx.home.pl (89.161.164.54) with SMTP (IdeaSmtpServer 0.83.415)
 id e4e463637aefa757; Wed, 24 Jun 2020 09:32:23 +0200
Received: from GEX0000-0657.ad.lasy.gov.pl (unknown [10.0.250.157])
    by ForwarderEX.mail.lasy.gov.pl (Postfix) with ESMTP id 230F830766AF
    for <Jaxx.Janxxxx@iqxx.pl>; Wed, 24 Jun 2020 09:32:23 +0200 (CEST)
Received: from GEX0000-0660.ad.lasy.gov.pl (10.0.250.160) by
 GEX0000-0657.ad.lasy.gov.pl (10.0.250.157) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id
 15.1.1913.5; Wed, 24 Jun 2020 09:32:22 +0200
Received: from GEX0000-0660.ad.lasy.gov.pl ([fe80::9418:7c0b:841e:baf1]) by
 GEX0000-0660.ad.lasy.gov.pl ([fe80::9418:7c0b:841e:baf1%20]) with mapi id
 15.01.1913.007; Wed, 24 Jun 2020 09:32:22 +0200
From: Robxxxx Filixxxxx <Roxxxx.Filixxxxx@warszawa.lasy.gov.pl>
To: "Jaxx Janxxxx - iqxx Polska Sp. z o.o."
    <Jaxx.Janxxxx@iqxx.pl>
CC: =?utf-8?B?TWljaGHFgiBNcsOzd2N6ecWEc2tp?=
    <Mixxxx.Mrowxxxxx@warszawa.lasy.gov.pl>
Subject: RE: iqxx Polska umowa na UPS APC - EPO
Thread-Topic: iqxx Polska umowa na UPS APC - EPO
Thread-Index: AQHWSWzvq7tpiCAGwE+VsPP9CzZinajnX1ag
Date: Wed, 24 Jun 2020 07:32:22 +0000
Message-ID: <fc1e3b3bc42d4b15b1e891e99517103b@warszawa.lasy.gov.pl>
References: <AqAJ0cK50QqdfZm6O2EAq3NuFgcNTC6ojCt9OGtxXBo@api.infirma.pl>
In-Reply-To: <AqAJ0cK50QqdfZm6O2EAq3NuFgcNTC6ojCt9OGtxXBo@api.infirma.pl>
Accept-Language: pl-PL, en-US
Content-Language: pl-PL
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [10.17.0.60]
Content-Type: application/pkcs7-mime; smime-type=signed-data;
    name="smime.p7m"
Content-Disposition: attachment; filename="smime.p7m"
Content-Transfer-Encoding: base64
MIME-Version: 1.0

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAaCAJIAEggGVQ29u
dGVudC1UeXBlOiBtdWx0aXBhcnQvcmVsYXRlZDsNCglib3VuZGFyeT0iLS0tLT1fTmV4dFBhcnRf
MDAwXzAwNjlfMDFENjRBMEEuNTlBQzcwRDAiDQoNClRoaXMgaXMgYSBtdWx0aXBhcnQgbWVzc2Fn
ZSBpbiBNSU1FIGZvcm1hdC4NCg0KLS0tLS0tPV9OZXh0UGFydF8wMDBfMDA2OV8wMUQ2NEEwQS41
OUFDNzBEMA0KQ29udGVudC1UeXBlOiBtdWx0aXBhcnQvYWx0ZXJuYXRpdmU7DQoJYm91bmRhcnk9
Ii0tLS09X05leHRQYXJ0XzAwMV8wMDZBXzAxRDY0QTBBLjU5QUM3MEQwIg0KDQoNCi0tLS0tLT1f
TmV4dFBhcnRfMDAxXzAwNkFfMDFENjRBMEEuNTlBQzcwRDANCkNvbnRlbnQtVHlwZTogdGV4dC9w
bGFpbjsNCgljaGFyc2V0PSJ1dGYtOCINCkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IDhiaXQN
..............

Is there a way to parse this email?

In widows' mail I can see email contents correctly

hrst commented 10 months ago

I'm having exactly the same issue, the mail opens perfectly fine in various email clients but here it only lists "smime.p7m" as an attachment. Has anybody got this working? Any help would be highly appreciated!

Harfusha commented 2 months ago

@piernik how did you solved this issue?