https://gitlab.synchro.net/main/sbbs/-/commit/c099e398282474543ee08064
Modified Files:
docs/v322_new.md src/smblib/smbtxt.c
Log Message:
smblib: treat a named "inline" MIME part as an attachment
mime_getattachment() skipped every part with Content-Disposition
"inline", so a photo sent from an iPhone (an image part marked inline,
with a filename) was never offered for download in the Terminal
Server's mail reader. A part with a filename is now an attachment
whatever its disposition, as WebMail's MsgBase.get_msg_parts() already
treats it. Images embedded in HTML mail are listed too; no rule tells
those apart from the iPhone's photo, which iOS Mail also places in a multipart/related part when it sends HTML.
The "filename=" search is now confined to the part's own header. It
searched to the end of the message body, which the inline skip had kept
from mattering: an unnamed inline part (e.g. a text body) followed by
an attachment would otherwise be listed under the next part's filename.
The same function also decides MSG_MIMEATTACH for received mail and
which MIME attachment SBBSecho exports with a NetMail message.
Fixes #485
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)