Page MenuHome GnuPG

GpgOL: Message "Not all attachments can be shown, exceeds maximum size" incorrectly shown
Testing, NormalPublic

Description

After/while fixing T7722 I did run into the Error message:

Not all attachments can be shown.

The hidden attachments are:
longname.withextralongextension

The mail exceeds the maximum size GpgOL can handle on this server.

i.e. attach_to returned errocode 0x80004005.
As the attachment was only 80k I checked for the reason and discovered that the sanitizeFileName T6864 can break the extension as they remove "..".
The filename was truncated and ended with "..." plus ".msg" (sometext.sommorelongtext....msg) extension so all 4 dots got removed and the extension was no longer "msg" but "somemorelongtextmsg" which was ok for creating the temp filename but outlook didn't like it.

Revisions and Commits

Event Timeline

mmontkowski created this task.
mmontkowski mentioned this in Unknown Object (Maniphest Task).Sep 22 2025, 10:11 AM
ebo changed the task status from Open to Testing.Sep 23 2025, 8:44 AM
ebo added projects: gpgol, vsd33, gpd5x.
ebo moved this task from Backlog to WIP on the gpd5x board.
ebo moved this task from Backlog to QA on the vsd33 board.

Looks good to me on vsd-3.3.3-beta90.12 @ win10:

Original message subject:
Test vom 04.08.2025, mit sehr langem subject, mit sehr langem subject, mit sehr langem subject, mit sehr langem subject, mit sehr langem subject, mit sehr langem subject, mit sehr langem subject, mit sehr langem subject, mit sehr langem subject, mit se...

Sanitized filename:
Testvom04.08.2025mitsehrlangemsubjectmitsehrlangemsubjectmitsehrlangemsubjectmitsehrlangemsubjectmitsehrlangemsubjectmitsehrlangemsubjectmitsehrlangemsubjectmitsehrlangemsubjectmitsehrlangemsubjectmitse.msg

timegrid edited projects, added vsd33 (vsd-3.3.3); removed vsd33.
ebo renamed this task from Not all attachments can be shown, exceeds maximum size to GpgOL: Message "Not all attachments can be shown, exceeds maximum size" incorrectly shown.Sep 30 2025, 9:04 AM

Looks good to me on gpg4win-5.0.0-beta395 @ win11

Tested:

  • Subject with >256 chars ("Test vom 04.08.2025...")
  • Subjects with 1, 2 and 3 dots

I attached those mails and checked if i could open them and drag & drop them on the desktop.