Hello Steffen,

Here is a complete session where I

1. Began a message with the word "Before"
2. Entered ed as an external editor and added the line "During"
3. Waited a long time
4. Did a date stamp from within the editor, then saved and exited
5. Got an IMAP write error
6. Did ~p to see that the message only contained the "Before" line
7. Still within the message, did an external shell command to see that
        there was a file /tmp/s-nailblahblah with the same date stamp as
        when I left the editor.
8. Still within the message, did an external cat command to see that the
        file in /tmp contained  the "Before" and "During" lines.
9. Abandoned the message with `x
10. Tried to repeat the cat command on the /tmp file and found that
        it had been removed.

So I am not accusing you of leaving files lying around in /tmp. But it appears that they aren't immediately deleted on return to the s-nail command line after an IMAP write error, when the content of the /tmp file hasn't been read back into the message buffer. Finishing the message appears to get the file cleaned away.

#-------------------------------------#
& m <my address there>
Subject: test
Before
~e
7
a
During
.
!date
Mon 30 Aug 16:12:24 BST 2021
!
wq
14
s-nail: IMAP write error: error:00000000:lib(0):func(0):reason(0)
(continue)
ERROR# ~p
-------
Message contains:
From: <my address here>
To: <my address there>
Subject: test

Before
~!ls -gG /tmp/s-nail*
-rw------- 1 14 Aug 30 16:12 /tmp/s-nail-edbaseUjFRoCne
!
(continue)
~!cat /tmp/s-nail-edbaseUjFRoCne
Before
During
!
(continue)
~x
s-nail: IMAP write error: Bad file descriptor
ERROR# & !cat /tmp/s-nail-edbaseUjFRoCne
cat: /tmp/s-nail-edbaseUjFRoCne: No such file or directory
#-----------------------------------------#

Stephen Isard

Reply via email to