• src/sbbs3/getmail.c getmsg.cpp mailsrvr.c writemsg.cpp

    From Rob Swindell to Git commit to main/sbbs/master on Wednesday, March 03, 2021 18:55:50
    https://gitlab.synchro.net/main/sbbs/-/commit/e779b88d983c05c681c2aac6
    Modified Files:
    src/sbbs3/getmail.c getmsg.cpp mailsrvr.c writemsg.cpp
    Log Message:
    Ignore filenames in subject that aren't valid filenames, e.g. "Fwd:"

    There were 2 bug identified by issue #230:
    - the "Fwd:" prefix being added to the message subject was being treated as a filename. I first thought to just remove this subject tag, but then thought it best to just ignore obviously invalid filenames in the subject in the first place.

    - when forwarding files to a netmail address, the 'to' extension (user number) is 0, so the file will be in the data/file/####.out directory of the sender instead.

    We have 4 places (at least) where the message subjects are parsed and only one of those places currently supports quoted filenames (e.g. with spaces in them) and some of the others (e.g. QWK) don't support multiple filenames at all. That should be fixed.