Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

QOTD: Flash! Flash! I love you! ...but we only have fourteen hours to save the earth!


dovenet / Synchronet Programming / src/sbbs3/js_bbs.cpp js_user.c logon.cpp readmail.cpp sbbs.h sbbsdefs.

SubjectAuthor
o src/sbbs3/js_bbs.cpp js_user.c logon.cpp readmail.cpp sbbs.h sbbsdefs.Rob Swindell (on ChromeOS)

1
src/sbbs3/js_bbs.cpp js_user.c logon.cpp readmail.cpp sbbs.h sbbsdefs.

<6403F620.46715.syncprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=716&group=DOVE-Net.Synchronet_Programming#716

  copy link   Newsgroups: DOVE-Net.Synchronet_Programming
From: rob.swindell.(on.chromeos)@VERT (Rob Swindell (on ChromeOS))
To: Git commit to main/sbbs/master
Subject: src/sbbs3/js_bbs.cpp js_user.c logon.cpp readmail.cpp sbbs.h sbbsdefs.
Message-ID: <6403F620.46715.syncprog@vert.synchro.net>
Date: Sat, 4 Mar 2023 10:53:36 -0800
X-Comment-To: Git commit to main/sbbs/master
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Programming
X-FTN-PID: Synchronet 3.20a-Linux master/5d1d586fd Mar 3 2023 GCC 12.2.0
X-FTN-MSGID: 46715.syncprog@1:103/705 2869e29b
X-FTN-CHRS: CP437 2
WhenImported: 20230304175336-0800 41e0
WhenExported: 20230304221813-0800 41e0
ExportedFrom: VERT syncprog 46715
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Rob Swindell (on Chr - Sat, 4 Mar 2023 18:53 UTC

https://gitlab.synchro.net/main/sbbs/-/commit/0b6bc179a66aaf10771ff218
Modified Files:
src/sbbs3/js_bbs.cpp js_user.c logon.cpp readmail.cpp sbbs.h sbbsdefs.h userdat.c userdat.h userfields.h
Log Message:
Add user_t.mail (in JS, user.mail_settings) to remember mail preferences

Right now, the only preference is reverse mail listings (oldest first
or newest first). These settings are only used when reading "your mail",
not any other kind of mail reading.

bbs.read_mail() now returns the user-adjusted loadmail_mode value and
this allows us to determine the user's preferences and save them after
this function/method is called. A readmail_mod can now return a number
(other than 0) and that will be used as the return value of this method.

sbbs_t::readmail() now does the adjustment of the passed lm_mode before
calling any installed readmail_mod, so if for example, deleted message
viewing is enabled by the sysop, those LM_* flags might be set now in
the argument to the readmail_mod, wherase they never would before.

There is not yet any way for the sysop to set a new user's default
mail_settings, they'll just default to 0 for now.

email_sec.js will get some adjustments to use/store the
user.mail_settings next.

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


dovenet / Synchronet Programming / src/sbbs3/js_bbs.cpp js_user.c logon.cpp readmail.cpp sbbs.h sbbsdefs.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor