• src/sbbs3/writemsg.cpp src/smblib/smblib.c smblib.h smbtxt.c

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Dec 10 22:43:22 2020
    https://gitlab.synchro.net/main/sbbs/-/commit/d79e9514b39faee53db1fae0
    Modified Files:
    src/sbbs3/writemsg.cpp src/smblib/smblib.c smblib.h smbtxt.c
    Log Message:
    Support forwarding of single-part HTML emails, add "Fwd:" subject prefix

    When forwarding a single-part MIME-encoded HTML email, the preamble (original message header info) and any user comments, need to be HTML-encoded.

    Add the commonly-used "Fwd: " prefix to the default message subject, when forwarding.

    This required that smb_getplaintext() no longer always-NULLify the message's text_subtype (e.g. "html"). For single-part messages, this element was getting freed and NULLed.

    Add/use a new SMBLIB convenience function to add a string header field, but only if non-NULL: smb_hfield_string()

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net