๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #3339

Bug#1153100: mairix: incorrect parsing of multipart MIME messages

#3339
From: Vincent Lefevre
Date: Thu, 05 Nov 2026 14:20
46 lines
3570 bytes
Control: retitle -1 mairix: incorrect parsing of multipart MIME messages

as this also occurs with multipart/alternative messages.

Moreover, if I add an equal character at the beginning of the
boundary, i.e.

[...]
  Content-Type: multipart/mixed;
   boundary="=a1e1a426b4e573a063c94639eec8fca7"
[...]
  --=a1e1a426b4e573a063c94639eec8fca7
[...]
  --=a1e1a426b4e573a063c94639eec8fca7
[...]
  --=a1e1a426b4e573a063c94639eec8fca7--
[...]

then the error disappears. But the parsing is still incorrect!

I suppose that mairix interprets "=" as starting a quoted-printable
character everywhere after the main header (thus including "=a1" in
the boundary) before matching the boundary, so that boundary matching
silently fails, and mairix does not index any content (since it
considers that this doesn't belong to any part). Note that Mutt
sees the attachments as expected.

For instance, with boundary="a1e1a426b4e573a063c94639eec8fca7",
and searching for "abc" (which is YWJj converted from base64 in
the second attachment), one gets as expected:

disset:/tmp> mairix -f mairixrc abc
Matched 1 messages

(despite the errors when indexing). But with the equal character,
i.e. with boundary="=a1e1a426b4e573a063c94639eec8fca7":

disset:/tmp> mairix -f mairixrc abc
Matched 0 messages
disset:/tmp> mairix -f mairixrc YWJj
Matched 0 messages

-- 
Vincent Lefรจvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Technical Details
Message-ID: <NW6tP-a0gE-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NW4BH-9Zkf-9@gated-at.bofh.it> <NW4V3-9Zr5-7@gated-at.bofh.it> <NW4BH-9Zkf-9@gated-at.bofh.it> <NW4V3-9Zr5-7@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Vincent Lefevre <vincent@vinc17.net>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1153100: mairix: incorrect parsing of multipart MIME messages
Date: Thu, 05 Nov 2026 15:20:01 +0100
Message-ID: <NW6tP-a0gE-1@gated-at.bofh.it>
References: <NW4BH-9Zkf-9@gated-at.bofh.it> <NW4V3-9Zr5-7@gated-at.bofh.it> <NW4BH-9Zkf-9@gated-at.bofh.it> <NW4V3-9Zr5-7@gated-at.bofh.it>
X-Original-To: 1153100@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Nov  5 14:17:07 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Vincent Lefevre <vincent@vinc17.net>, 1153100@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: mako@debian.org
X-Debian-Pr-Message: followup 1153100
X-Debian-Pr-Package: mairix
X-Debian-Pr-Source: mairix
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Mailer-Info: https://www.vinc17.net/mutt/
User-Agent: Mutt/2.4.3+59 (844fcfe7) vl-188789 (2026-10-10)
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000800
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 46
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 5 Nov 2026 15:15:47 +0100
X-Original-Message-ID: <20261105141547.GB498269@qaa.vinc17.org>
X-Original-References: <20261105121708.GA36370@disset.lip.ens-lyon.fr> <20261105122455.GA2525@disset.lip.ens-lyon.fr> <20261105121708.GA36370@disset.lip.ens-lyon.fr> <20261105122455.GA2525@disset.lip.ens-lyon.fr>