https://gitlab.synchro.net/main/sbbs/-/commit/fe2304f2f51fb0ebf1950419
Modified Files:
ctrl/text.dat docs/v322_new.md exec/load/text.js src/sbbs3/getmsg.cpp readmail.cpp readmsgs.cpp sbbs.h text.h text_defaults.c text_id.c
Log Message:
Save message to file: append/overwrite prompt, report the saved path
The sysop Save command while reading a message or mail (S) always
appended to the named file and printed nothing afterward. A bare filename
is resolved from the Terminal Server's working directory (ctrl), so there
was no indication of where the message actually went.
When the file already exists (and isn't empty), its full path is now
displayed followed by an Append, Overwrite, or Quit prompt. After any successful save, the full path written to is displayed. The path is
printed without @-code or mnemonic interpretation, since it may contain
'@', '~' or '`'.
The Subj/To/From/Date header labels written to the file are now text.dat strings as well; with the default strings the file contents are unchanged.
readmsgs.cpp and readmail.cpp each had their own copy of the prompt and
save code; both now call the new sbbs_t::savemsgtotxt(). msgtotxt() gains
an 'append' parameter (default true) that, when false, truncates instead.
New text strings: FileAlreadyExists, AppendOverwriteOrQuit, MsgSavedToFile, SavedMsgSubj, SavedMsgTo, SavedMsgFrom and SavedMsgDate (1000-1006).
Co-Authored-By: Claude Opus 5.5 <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net