• exec/imapservice.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Friday, April 10, 2026 21:07:44
    https://gitlab.synchro.net/main/sbbs/-/commit/09a6a040db5965a1dd674b3f
    Modified Files:
    exec/imapservice.js
    Log Message:
    Fix imapservice.js toSource() calls for SM128 compatibility

    Replace all 33 toSource() occurrences:
    - Deep copies: eval(x.toSource()) -> JSON.parse(JSON.stringify(x))
    - Error messages: x.toSource() -> JSON.stringify(x)
    - Value embedding in eval'd functions: x.toSource() -> JSON.stringify(x)
    and wrap function expressions in parens for SM128
    - NOT/OR search: replace eval+toSource function serialization with
    direct closure composition
    - Fix bug in OR: next1[0]==next1[1] -> next1[0]==next2[0]

    Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)