No notification when email is base64 encoded

Infos:

  • Used Zammad version: 5.1.1
  • Used Zammad installation type: docker-compose
  • Operating system: Debian

Expected behavior:

  • mbsync fetchs e-mails
  • create new ticket by all e-mails *(c)
  • getting notifications for each new ticket on zammad

Actual behavior:

1. E-Mail:
  • mbsync fetchs e-mails
  • create new ticket by e-mail 1 *(c):
    look below for the mail content
  • getting no notification on zammad
2. E-Mail:
  • mbsync fetchs e-mails
  • create new ticket by e-mail 2 *(c):
    look below for the mail content
  • getting notification on zammad

Legend:

  • c =
   docker exec --interactive $docker /bin/bash -c 
  "rails r 'Channel::Driver::MailStdin.new(trusted: true)'" < $mail_path

Attachements:

  • E-Mail 1 (not working - base64 encoded):
Received: from sv-gmhgrp-ms06.gmh-group.local (10.243.66.153) by
 sv-gmhgrp-ms05.gmh-group.local (10.243.66.152) with Microsoft SMTP Server
 (TLS) id 15.0.1497.36 via Mailbox Transport; Thu, 7 Jul 2022 13:22:27 +0200
Received: from sv-gmhgrp-ms05.gmh-group.local (10.243.66.152) by
 sv-gmhgrp-ms06.gmh-group.local (10.243.66.153) with Microsoft SMTP Server
 (TLS) id 15.0.1497.36; Thu, 7 Jul 2022 13:22:27 +0200
Received: from sv-gmhgrp-ms05.gmh-group.local ([fe80::2411:51ca:a67e:599d]) by
 sv-gmhgrp-ms05.gmh-group.local ([fe80::2411:51ca:a67e:599d%16]) with mapi id
 15.00.1497.036; Thu, 7 Jul 2022 13:22:27 +0200
From: "Hentzschel, Uwe" <Uwe.Hentzschel@gmh-gruppe.de>
To: =?utf-8?B?U2NobWllZGV3ZXJrZSBHw7ZkaXR6IHwgU3VwcG9ydA==?=
        <support.swg@gmh-gruppe.de>
Subject: WG: Zammad Getting started Test Email #f33cf3d2a7f38de8067b
Thread-Topic: Zammad Getting started Test Email #f33cf3d2a7f38de8067b
Thread-Index: AQHYkfLR7lGqmKUj/0u0rOfZGGzXl61ywb1mgAAB+9A=
Date: Thu, 7 Jul 2022 11:22:27 +0000
Message-ID: <c3003809ba844fda8f898623ed9decf9@sv-gmhgrp-ms05.gmh-group.local>
References: <62c6c02f6d7c3_12d35c428c6@28beb025c670.mail>
 <f5bb95eb52004fc8aad3e94440759af3@sv-gmhgrp-ms05.gmh-group.local>
In-Reply-To: <f5bb95eb52004fc8aad3e94440759af3@sv-gmhgrp-ms05.gmh-group.local>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 04
X-MS-Exchange-Organization-AuthSource: sv-gmhgrp-ms05.gmh-group.local
X-MS-Has-Attach:
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator:
x-originating-ip: [10.243.168.121]
x-c2processedorg: 1d7dec1a-a900-4dae-8204-dfb2876a89da
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-TUID: CzRcRzp+MEXL

Qm9keQ0KDQoNClNjaG1pZWRld2Vya2UgR3LDtmRpdHogR21iSA0KUmllc2FlciBTdHJhw59lIDEg
wrcgMDE2MDkgR3LDtmRpdHoNClRlbGVmb246ICs0OSAzNTI2MyA2MiAtIDU1MSDCtyBNb2JpbDog
KzQ5IDE2MiAyNTI1NjQxIMK3IEZheDogKzQ5IDM1MjYzIDYyIC0gNTQ1DQpVd2UuSGVudHpzY2hl
bEBnbWgtZ3J1cHBlLmRlIMK3IHd3dy5zdGFobC1ncm9lZGl0ei5kZQ0KDQpBdWZzaWNodHNyYXRz
dm9yc2l0emVuZGVyOiBEci4gTWljaGFlbCBGdWNocw0KR2VzY2jDpGZ0c2bDvGhydW5nOiBEci4g
SmVucyBPdmVycmF0aCAoVm9ycy4pLCBNYXRoaWFzIEjDtmxzY2hlciwgSWwtS3l1IExlZQ0KR2Vz
ZWxsc2NoYWZ0c3NpdHo6IEdyw7ZkaXR6DQpBbXRzZ2VyaWNodCBEcmVzZGVuLCBIUkIgMTg5NDYN
Cg0KRGllc2UgRS1NYWlsIGVudGjDpGx0IHZlcnR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4sDQo+
"1657192943.26739_2.docker-host,U=6:2," 113 lines, 7778 characters
  • E-Mail 2 (working)
Received: from sv-gmhgrp-ms06.gmh-group.local (10.243.66.153) by
 sv-gmhgrp-ms05.gmh-group.local (10.243.66.152) with Microsoft SMTP Server
 (TLS) id 15.0.1497.36 via Mailbox Transport; Thu, 7 Jul 2022 15:07:32 +0200
Content-Type: multipart/related;
        boundary="_26d297d8-3c4a-4ccf-af46-b83cfeb9b241_"
Received: from sv-gmhgrp-ms06.gmh-group.local (10.243.66.153) by
 sv-gmhgrp-ms06.gmh-group.local (10.243.66.153) with Microsoft SMTP Server
 (TLS) id 15.0.1497.36; Thu, 7 Jul 2022 15:07:32 +0200
Received: from GRP-SVEX03.grp.gmh-gruppe.de (10.248.33.153) by
 sv-gmhgrp-ms06.gmh-group.local (10.243.66.153) with Microsoft SMTP Server id
 15.0.1497.36 via Frontend Transport; Thu, 7 Jul 2022 15:07:32 +0200
Received: from GRP-SVEX03.grp.gmh-gruppe.de (10.248.33.153) by
 GRP-SVEX03.grp.gmh-gruppe.de (10.248.33.153) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.1.2507.9; Thu, 7 Jul 2022 15:07:32 +0200
Received: from GMH-GRUPPE.DE (172.16.108.108) by GRP-SVEX03.grp.gmh-gruppe.de
 (10.248.33.153) with Microsoft SMTP Server id 15.1.2507.9 via Frontend
 Transport; Thu, 7 Jul 2022 15:07:32 +0200
Date: Thu, 7 Jul 2022 15:07:31 +0200
From: SWG-BATCH <operator.swg@gmh-gruppe.de>
Subject: Wareneingang zur BANF 13643253/10 gebucht!
To: <support@stahl-groeditz.de>
Message-ID: <ADR47000000511905010005056BBAB521EECBFBEB843D213EF01@GMH-GRUPPE.DE>
X-Mailer: SAP NetWeaver 750
Return-Path: operator.swg@gmh-gruppe.de
X-C2ProcessedOrg: d53e687c-8bbe-454a-af28-67d612bcbd30
X-CrossPremisesHeadersFilteredBySendConnector: GRP-SVEX03.grp.gmh-gruppe.de
X-OrganizationHeadersPreserved: GRP-SVEX03.grp.gmh-gruppe.de
X-MS-Exchange-Organization-AuthSource: sv-gmhgrp-ms06.gmh-group.local
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 10
X-MS-Exchange-Organization-Network-Message-Id: 465a1771-0ef9-4649-77f6-08da6019a733
X-C2ProcessedOrg: 1d7dec1a-a900-4dae-8204-dfb2876a89da
MIME-Version: 1.0
X-TUID: gVMJcMFX4DYc

--_26d297d8-3c4a-4ccf-af46-b83cfeb9b241_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Description: Wareneingang zur BANF 13643253/10 gebucht!

<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>Bei Nutzer APO_REMOTE ist keine E-Mail-Adresse gepflegt. Bitte in ZTICKETS=
_USER oder Nutzerstamm vornehmen!
<br>=0A=
<p style=3D"FONT-SIZE: 10pt; FONT-FAMILY: ARIAL; MARGIN: 0px"><strong>Schmi=
edewerke Gr&ouml;ditz GmbH<br></strong><span style=3D"FONT-SIZE: 8pt; FONT-=
FAMILY: Arial"><a style=3D"FONT-FAMILY: Arial" href=3D"mailto:operator.swg@=
gmh-gruppe.de">operator.swg@gmh-gruppe.de</a></span></p>=0A=
<p style=3D"FONT-SIZE: 10pt; FONT-FAMILY: ARIAL; MARGIN: 0px"><span style=
=3D"FONT-SIZE: 8pt; FONT-FAMILY: Arial"></span>&nbsp;</p><br>
<p style=3D"MARGIN-BOTTOM: 5pt; FONT-SIZE: 10pt; FONT-FAMILY: ARIAL; MARGIN=
-TOP: 0pt"><img style=3D"HEIGHT: 90px; WIDTH: 306px" border=3D"0" src=3D"ci=
d:BannerInnotrans_669b54ed-1260-4996-8a8d-3e21c7998b8d.png" width=3D"306" h=
eight=3D"90"></p><br>
<p style=3D"FONT-SIZE: 8pt; FONT-FAMILY: ARIAL">
<table style=3D"WIDTH: 665px" cellspacing=3D"0" cellpadding=3D"0">
  <tbody>
  <tr>
    <td style=3D"FONT-SIZE: 8pt; HEIGHT: 10px; FONT-FAMILY: Arial; WIDTH: 1=
55px" valign=3D"top"><font color=3D"#636363"><strong><span style=3D"FONT-FA=
MILY: "><span style=3D"FONT-FAMILY: ">Aufsichtsratsvorsitzender:</span></sp=
an></strong></font></td>
    <td style=3D"FONT-SIZE: 8pt; HEIGHT: 10px; FONT-FAMILY: Arial; WIDTH: 5=
10px" valign=3D"top"><font color=3D"#636363">Dr. Michael Fuchs</font></td><=
/tr>
  <tr>
    <td style=3D"FONT-SIZE: 8pt; HEIGHT: 25px; FONT-FAMILY: Arial" valign=
=3D"top"><font color=3D"#636363"><strong><span style=3D"FONT-FAMILY: "><spa=
n style=3D"FONT-FAMILY: "><span style=3D"FONT-FAMILY: Arial"><span style=3D=
"1657202587.3675_2.docker-host,U=8:2," 1770 lines, 133139 characters

I forgott to mention, that I’m using davmail to fetch the emails.

If processing the email-fetch without mbsync it works.