Sending of messages when stdin is set to /dev/null

Remco Rijnders remco at webconquest.com
Wed Nov 11 14:27:59 UTC 2020


On Sun, Nov 08, 2020 at 11:00:03PM +0000, Rahul wrote in 
<CAHrc-xx3zhb7-yoojXnTWbGEG+7jkeBz7F+JDqXAueXu2Lc-gw at mail.gmail.com>:
>I noticed that when I call Mutt with the stdin set to /dev/null, Mutt
>sends the message without asking for confirmation, e.g.,
>
>  mutt 'mailto:mail at mail.zz?subject=test&body=hello' </dev/null
>
>I find this to be an issue since some programs (e.g., Mathematica) use
>xdg-open to send automatic feedback with the stdin set to /dev/null.  If
>Mutt is configured to handle the x-scheme-handler/mailto mimetype, then
>this results in messages being sent without the user being aware of it.
>
>Is there any way to disable this behavior?

Hi Rahul,

Is there any way for you to change the way mutt gets invoked? As it is, in the
way you've specified, mutt runs in batch mode and the behavior you see is "as
designed". What behavior would you like to see? The behavior as one would get
invoking mutt as:

mutt 'mailto:mail at mail.zz?subject=test&body=hello'
?

Kind regards,

Remco


More information about the Mutt-users mailing list