Closed igorrendulic closed 4 months ago
gmime version:
brew info gmime
==> gmime: stable 3.2.14 (bottled), HEAD
MIME mail utilities
https://github.com/jstedfast/gmime
/opt/homebrew/Cellar/gmime/3.2.14 (174 files, 4.5MB) *
Poured from bottle using the formulae.brew.sh API on 2023-10-18 at 15:18:18
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/g/gmime.rb
License: LGPL-2.1-or-later
==> Dependencies
Build: gobject-introspection ✔, pkg-config ✔
Required: glib ✔, gpgme ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 413 (30 days), 1,082 (90 days), 5,129 (365 days)
install-on-request: 57 (30 days), 248 (90 days), 1,613 (365 days)
build-error: 0 (30 days)
Apple M3 Pro
14.2.1 (23C71)
The g_mime_part_get_content assertion failure isn't in the parser, it's in code that accesses the message after it has been parsed. Code at some layer above gmime is likely assuming a part is a GMimePart when it is not.
A message/rfc822 part maps to GMimeMessagePart and does not inherit from GMimePart, so this error is expected.
I'm not as familiar with gmime (I'm using it through GO wrapper) so please let me know if this issue is not fitting. I'll remove.
The parsing error:
(process:42398): gmime-CRITICAL **: 14:41:48.844: g_mime_part_get_content: assertion 'GMIME_IS_PART (mime_part)' failed
Problematic part is:
This example is taken from the go-mime lib