• src/sbbs3/bulkmail.cpp em

    From rswindell@VERT to CVS commit on Mon Oct 29 16:16:00 2018
    src/sbbs3 bulkmail.cpp 1.39 1.40 email.cpp 1.69 1.70 fido.cpp 1.63 1.64 msgtoqwk.cpp 1.52 1.53 netmail.cpp 1.51 1.52 postmsg.cpp 1.114 1.115 qwktomsg.cpp 1.68 1.69 readmsgs.cpp 1.107 1.108 writemsg.cpp 1.128 1.129
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv2088

    Modified Files:
    bulkmail.cpp email.cpp fido.cpp msgtoqwk.cpp netmail.cpp
    postmsg.cpp qwktomsg.cpp readmsgs.cpp writemsg.cpp
    Log Message:
    Store the terminal width (in columns) of the text editor used to create the message text (when relevant and available) - this helps when re-wrapping the message text (e.g. for quoting) and not always guessing "80 columns".


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tue Feb 19 16:43:00 2019
    src/sbbs3 bulkmail.cpp 1.40 1.41 email.cpp 1.72 1.73 execfunc.cpp 1.44 1.45 fido.cpp 1.66 1.67 js_bbs.cpp 1.176 1.177 js_msgbase.c 1.228 1.229 mailsrvr.c 1.681 1.682 netmail.cpp 1.54 1.55 newuser.cpp 1.77 1.78 postmsg.cpp 1.120 1.121 readmail.cpp 1.87 1.88 readmsgs.cpp 1.115 1.116 sbbs.h 1.504 1.505 sbbsdefs.h 1.231 1.232 writemsg.cpp 1.141 1.142
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv6411

    Modified Files:
    bulkmail.cpp email.cpp execfunc.cpp fido.cpp js_bbs.cpp
    js_msgbase.c mailsrvr.c netmail.cpp newuser.cpp postmsg.cpp
    readmail.cpp readmsgs.cpp sbbs.h sbbsdefs.h writemsg.cpp
    Log Message:
    Reversed course on the WM_QUOTE mode handling in sbbs_t::postmsg()
    (JS bbs.post_msg()): If the WM_QUOTE mode flag is *not* set, then it will auto- create the quote file (quotes.txt) and add the WM_QUOTE mode bit before calling sbbs_t::writemsg(). So if existing JS scripts call bbs.post_msg(..., WM_QUOTE) with a custom-created quote file (e.g. with msg tails), that'll still work as before (e.g. DDMsgReader.js).

    bbs.email() and bbs.netmail() now support an optional reply_header_object argument which works like bbs.post_msg(). These methods (and the underlying
    C++ methods: sbbs_t::email(), netmail(), inetmail(), all auto-create the
    quote file now, when the WM_QUOTE mode flag is *not* set.

    The auto-created quotes.txt now includes the plain-text version of MIME-encoded messages.

    the bbs.post_msg(), email(), and netmail() methods now all support reply
    header objects that came directly from bbs.get_msg_header() *or* copies of
    such header objects (but the auto-quoting feature won't work when supplied
    this type of header object). So if passed a header object returned from bbs.get_msg_header(), we can now use the message base (for auto-quoting) and the underlying msg storage directly (no JS parsing necessary). This is what
    the new js_GetMsgHeaderObjectPrivates() function is used for.

    js_ParseMsgHeaderObject() (and the underlying parse_header_object() function) now supports either an actual internally-generated msg header object (e.g. returned from bbs.get_msg_header()) or one that is a copy or hand-constructed.

    quotemsg() no longer tries to get a copy of the msg index/header. It shouldn't have to since we can now get to underlying msg storage in the js_msgbase.c
    via js_GetMsgHeaderObjectPrivates().

    quotemsg() now reads only the plain-text portion of MIME-encoded messages.

    As part of this effort, I modernized the method prototypes using default argument values (e.g. WM_NONE for wm_mode arguments) and removed some extraneous WM_EMAIL and WM_NETMAIL specifications (these wm_mode flags are automatically added by the sbbs_t::email() and *netmail() functions).

    savemsg() now *does* support reply-IDs/thread-linkage via the additional 'remsg' argument (when non-NULL).

    Replaced some use of nulstr with NULL.

    Replaced more boilerplate SMB open code with calls to smb_open_sub().


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thu Apr 11 13:10:00 2019
    src/sbbs3 bulkmail.cpp 1.41 1.42 email.cpp 1.73 1.74 fido.cpp 1.70 1.71 netmail.cpp 1.57 1.58 postmsg.cpp 1.121 1.122 sbbs.h 1.512 1.513 sbbsdefs.h 1.235 1.236 writemsg.cpp 1.145 1.146
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv29235

    Modified Files:
    bulkmail.cpp email.cpp fido.cpp netmail.cpp postmsg.cpp sbbs.h
    sbbsdefs.h writemsg.cpp
    Log Message:
    Define and use a new external message editor option: SAVECOLUMNS
    (default: off) - when enabled, the current terminal width (columns) will be saved in the msg header.
    When using the internal msg editor or raw intput mode, the columns are always saved in the message editor. fseditor.js should have this option enabled.


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