Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lafite "Send Mail" errors in OPENSTRINGSTREAM with invalid argument list #<IO Text Stream/...> #982

Closed
nbriggs opened this issue Oct 9, 2022 · 5 comments · Fixed by #997
Assignees

Comments

@nbriggs
Copy link
Contributor

nbriggs commented Oct 9, 2022

I turned on Lafite in NS mode, talking to the Dodo mail server. Attempting to send a message dies with

OPENSTRINGSTREAM
"STR"    #<IO Text Stream/136,10500>
"ACCESS" INPUT

stack trace is:

\ILLEGAL.ARG
OPENSTRINGSTREAM
\SENDMESSAGE.RESTARTABLE ("FORM" is the IO Text Stream)
\SENDMESSAGE ("FORM" is the IO Text Stream)
\EVALFORM (*FORM* is (\SENDMESSAGE (QUOTE #<IO Text Stream ...>) NIL NIL)
@nbriggs
Copy link
Contributor Author

nbriggs commented Oct 10, 2022

Well, it looks like a well-formed IO Text Stream that is being passed in, and (TEXTSTREAMP ...) of it is non-NIL.

@nbriggs
Copy link
Contributor Author

nbriggs commented Oct 10, 2022

The bug is actually in \SENDMESSAGE.RESTARTABLE, where it does

(SETQ EDITORRESULT
   (TEDIT (OPENSTRINGSTREAM FORM) EDITORWINDOW T ...))

@nbriggs
Copy link
Contributor Author

nbriggs commented Oct 16, 2022

@rmkaplan -- what's really the right thing to replace the (TEDIT (OPENSTRINGSTREAM FORM) ...) with? I got further with:

          [SETQ EDITORRESULT (TEDIT (OR (TEXTSTREAMP FORM)
                                        (OPENSTRINGSTREAM FORM))
                                    EDITORWINDOW T (APPEND TEDITPROPS (LIST 'FONT LAFITEEDITORFONT]

but I'm not sure that's actually correct.

@rmkaplan
Copy link
Contributor

rmkaplan commented Oct 16, 2022 via email

@nbriggs
Copy link
Contributor Author

nbriggs commented Oct 16, 2022

OK, I'll see if I can compile it after making that change. I had a lot of trouble over its use of (type? ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants