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.
parent
067c4006
No related branches found
No related tags found
Showing
- src/sbbs3/js_bbs.cpp 5 additions, 3 deletionssrc/sbbs3/js_bbs.cpp
- src/sbbs3/js_user.c 16 additions, 1 deletionsrc/sbbs3/js_user.c
- src/sbbs3/logon.cpp 7 additions, 2 deletionssrc/sbbs3/logon.cpp
- src/sbbs3/readmail.cpp 15 additions, 11 deletionssrc/sbbs3/readmail.cpp
- src/sbbs3/sbbs.h 2 additions, 2 deletionssrc/sbbs3/sbbs.h
- src/sbbs3/sbbsdefs.h 5 additions, 1 deletionsrc/sbbs3/sbbsdefs.h
- src/sbbs3/userdat.c 13 additions, 0 deletionssrc/sbbs3/userdat.c
- src/sbbs3/userdat.h 2 additions, 0 deletionssrc/sbbs3/userdat.h
- src/sbbs3/userfields.h 3 additions, 0 deletionssrc/sbbs3/userfields.h
Loading
Please register or sign in to comment