<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Attachments with Content-Type &quot;application/pkcs7-signature&quot; are hidden in Carbonio webmail (composer and Sent folder) - Carbonio General				            </title>
            <link>https://community.zextras.com/forum/carbonio-general-thread/attachments-with-content-type-application-pkcs7-signature-are-hidden-in-carbonio-webmail-composer-and-sent-folder/</link>
            <description>Zextras Community Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 05 Oct 2026 21:38:36 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Attachments with Content-Type &quot;application/pkcs7-signature&quot; are hidden in Carbonio webmail (composer and Sent folder)</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/attachments-with-content-type-application-pkcs7-signature-are-hidden-in-carbonio-webmail-composer-and-sent-folder/#post-12495</link>
                        <pubDate>Fri, 17 Jul 2026 12:55:39 +0000</pubDate>
                        <description><![CDATA[@manulThanks for the detailed writeup. I will try to look into this and will share my findings with you.
Thanks]]></description>
                        <content:encoded><![CDATA[<p>@manul<br /><br />Thanks for the detailed writeup. I will try to look into this and will share my findings with you.</p>
<p>Thanks</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>Sharif</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/attachments-with-content-type-application-pkcs7-signature-are-hidden-in-carbonio-webmail-composer-and-sent-folder/#post-12495</guid>
                    </item>
				                    <item>
                        <title>Attachments with Content-Type &quot;application/pkcs7-signature&quot; are hidden in Carbonio webmail (composer and Sent folder)</title>
                        <link>https://community.zextras.com/forum/carbonio-general-thread/attachments-with-content-type-application-pkcs7-signature-are-hidden-in-carbonio-webmail-composer-and-sent-folder/#post-12491</link>
                        <pubDate>Thu, 16 Jul 2026 13:16:52 +0000</pubDate>
                        <description><![CDATA[Hi everyone,
We&#039;ve run into an issue with Carbonio CE 4.25.2 and would like to share our findings, since it looks like a known long-standing behavior inherited from Zimbra rather than somet...]]></description>
                        <content:encoded><![CDATA[<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="3:1-3:13;128-140">Hi everyone,</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="5:1-5:186;142-327">We've run into an issue with Carbonio CE 4.25.2 and would like to share our findings, since it looks like a known long-standing behavior inherited from Zimbra rather than something new.</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="7:1-7:24;329-352"><strong>Problem description</strong></p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="9:1-9:393;354-746">Attachments with Content-Type <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">application/pkcs7-signature</code> (typically <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">.p7s</code> files — standalone signed documents, e.g. tax/legal/HR documents signed with a qualified electronic signature) are not shown in the Carbonio web client, neither while composing a message nor when reopening a message from the Sent folder. The attachment simply doesn't appear in the UI, as if nothing were attached.</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="11:1-11:45;748-792">The attachment is NOT actually lost, though:</p>
<ul class=":mb-0 :mt-1 :gap-1 :pb-1 :pb-1 list-disc flex flex-col gap-1 pl-8 mb-3" data-sourcepos="12:1-14:150;793-1157">
<li class="font-claude-response-body whitespace-normal break-words pl-2" data-sourcepos="12:1-12:165;793-957">The file is correctly received and stored by FileUploadServlet (confirmed via mailbox.log — "saveUpload(): received Upload" entries show the file coming in fine).</li>
<li class="font-claude-response-body whitespace-normal break-words pl-2" data-sourcepos="13:1-13:50;958-1007">The message is sent with the attachment intact.</li>
<li class="font-claude-response-body whitespace-normal break-words pl-2" data-sourcepos="14:1-14:150;1008-1157">Any other mail client (Thunderbird, Outlook, other IMAP clients) correctly shows and downloads the very same attachment from the very same message.</li>
</ul>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="16:1-16:121;1159-1279">So it's purely a web client display issue — not an MTA, antivirus, or attachment-blocking problem. We already ruled out:</p>
<ul class=":mb-0 :mt-1 :gap-1 :pb-1 :pb-1 list-disc flex flex-col gap-1 pl-8 mb-3" data-sourcepos="17:1-18:79;1280-1419">
<li class="font-claude-response-body whitespace-normal break-words pl-2" data-sourcepos="17:1-17:61;1280-1340"><code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">zimbraMtaBlockedExtension</code> (p7s/p7m are not in that list)</li>
<li class="font-claude-response-body whitespace-normal break-words pl-2" data-sourcepos="18:1-18:79;1341-1419">Antivirus/antispam (mail is delivered with the attachment intact either way)</li>
</ul>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="20:1-20:57;1421-1477"><strong>Example MIME headers of the affected attachment part</strong></p>
<div class="relative group/copy bg-bg-000/50 border-0.5 border-border-400 rounded-lg focus:outline-none focus-visible:ring-2 focus-visible:ring-accent-100" role="group" aria-label="Code" data-sourcepos="22:1-28:4;1479-1660">
<div class="overflow-x-auto">
<pre class="code-block__code !my-0 !rounded-lg !text-sm !leading-relaxed p-3.5" contenteditable="false"><code><span>Content-Type: application/pkcs7-signature;
</span><span> name="...filename...pdf.p7s"
</span><span>Content-Disposition: attachment;
</span><span> filename="...filename...pdf.p7s"
</span><span>Content-Transfer-Encoding: base64</span></code></pre>
</div>
</div>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="30:1-30:522;1662-2183">Important detail: in our case this attachment is NOT part of a <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">multipart/signed</code> structure — it's not a signature over the message itself (S/MIME-style). It's a plain regular attachment whose payload happens to be a PKCS#7 signed document, which is a common pattern in several countries' e-government/e-document workflows (e.g. Italian PEC "atti.p7m", Ukrainian tax/HR documents "*.pdf.p7s"). It looks like the client filters/hides any attachment part with this Content-Type regardless of the surrounding MIME structure.</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="32:1-32:56;2185-2240"><strong>This looks like the same issue as an old Zimbra bug</strong></p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="34:1-34:447;2242-2688">This exact behavior existed in Zimbra for years and is documented as Zimbra Bugzilla #69476: the web client was changed to ignore <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">application/pkcs7-signature</code> parts, apparently to hide the actual S/MIME signature part of signed messages. The side effect was that any attachment using this same Content-Type got hidden too, breaking legitimate cases where the p7s/p7m file is a standalone signed document rather than a signature over the message.</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="36:1-37:197;2690-2972">A community-maintained Zimlet was published back then specifically to work around it: zimbra-patches (folder <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">tk_barrydegraaff_enable_pkcs7_signature</code>) — described as reverting the ignoring of <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">application/pkcs7-signature</code> introduced by that bug.</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="39:1-39:211;2974-3184">Since Carbonio's web client is a full rewrite (React-based, not Ext/Zimlet-based anymore), that old Zimlet fix obviously doesn't apply here, but the same filtering logic seems to have carried over conceptually.</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="41:1-41:38;3186-3223"><strong>Possibly related area of the code</strong></p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="43:1-43:230;3225-3454">Carbonio added native S/MIME support in <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">carbonio-mailbox</code> (PR #646, released in 4.20.0, Feb 2025). That's likely the place where <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">application/pkcs7-signature</code> parts get special-cased and excluded from what's shown to the client.</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="45:1-45:26;3456-3481"><strong>What we'd love to see</strong></p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="47:1-47:352;3483-3834">Ideally, the filtering would only apply when the pkcs7-signature part is actually a child of a <code class="bg-text-200/5 border border-0.5 border-border-300 text-danger-000 whitespace-pre-wrap rounded- px-1 py-px text-">multipart/signed</code> structure (i.e. a real S/MIME signature on the message), so that standalone p7s/p7m attachments — a very common real-world document type in several jurisdictions — show up normally in the UI, just like they already do in any IMAP client.</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="49:1-49:176;3836-4011">Happy to share full raw message headers or a test message/log excerpt if that helps track this down. Has anyone else run into this, or found a workaround on the Carbonio side?</p>
<p class="font-claude-response-body break-words whitespace-normal" data-sourcepos="51:1-51:8;4013-4020">Thanks!</p>]]></content:encoded>
						                            <category domain="https://community.zextras.com/forum/carbonio-general-thread/">Carbonio General</category>                        <dc:creator>manul</dc:creator>
                        <guid isPermaLink="true">https://community.zextras.com/forum/carbonio-general-thread/attachments-with-content-type-application-pkcs7-signature-are-hidden-in-carbonio-webmail-composer-and-sent-folder/#post-12491</guid>
                    </item>
							        </channel>
        </rss>
		