After sending a bug report, I got: Mutt users should be aware it is mandatory to edit the draft before sending. Report has not been sent yet; what do you want to do now? [E|q|?]? and thought that the bug report was not sent. So, I did 'E' and saw an empty bug report, and then again I tought that the bug report was lost! So, I started to write it again, until I saw the trace in my mailbox. This was the first time I got this problem.
* the editor for Mutt is Emacs 24,
* Emacs runs in the terminal (e.g. because X11 DISPLAY is not
available, but this can also be done with "emacs -nw"),
* I type Ctrl-G in Emacs.
A Ctrl-G in Emacs 24 has the effect to send a SIGINT to the whole
process group (previous Emacs versions behave differently, and this
problem was fixed in the Emacs trunk[*]) since Emacs changes the
INTR character to Ctrl-G for internal use and doesn't put itself
in its own process group. Mutt itself is not affected and I could
check that it terminates normally, i.e. with a 0 exit status. So,
I suppose that reportbug can't handle the SIGINT gracefully. Or
it could be due to this dash bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683671
since a ps shows that reportbug runs Mutt via "sh -c".
[*] http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11886
[also sent to 683671@b.d.o since this concerns dash; for reportbug, one should do a test with bash as /bin/sh to see whether reportbug is really buggy or if this is just a consequence of the dash bug.] I couldn't try because the Debian BTS doesn't have a test system (due avoid creating a dummy bug report), but a Ctrl-C in Mutt also sends a SIGINT to the whole process group (as expected), even when one doesn't quit Mutt and Mutt terminates normally. So, even if the problem is "fixed" (avoided) in Emacs, the real problem still exists.
Dear Maintainer, I get this constantly on my laptop: -- >8 -- $ fg reportbug kexec-tools Mutt users should be aware it is mandatory to edit the draft before sending. Report has not been sent yet; what do you want to do now [E|q|?]? q Bug report written to a temporary file. You can resume the unsent report using: reportbug -r /tmp/reportbug-kexec-tools-20230201160610-z8mgeiba Thank you for using reportbug -- >8 -- Using vim as the editor and sending via neomutt (so I probably did ^C). наб