Re: ask-yes for sending?
Thanks José! Your email made me think of this problem in a new way. I've now modified my .muttrc with a "set editor" line like this: set editor="vim -c 'set syntax=mail ft=mail enc=utf-8' -c 'setlocal spell spelllang=en_us'" With that, my mutt is highlighting spelling errors as I type them. This has allowed me to remove my macro for spell checking before sending. Cheers, Bryan On Wed, Jun 08, 2022 at 03:04:54PM -0400, José María Mateos wrote: > On Wed, Jun 08, 2022 at 01:55:06PM -0500, Bryan K. Walton wrote: > > To be precise, what I would like is the ability to cancel sending when > > my ispell check shows me something that requires manual intervention. > > It would be nice to have a confirmation come up after spell > > checking, but before sending. Then, I could cancel the actual send and > > fix the error, and then send again. > > I know this is not exactly what you've asked for, but wouldn't it better in > that case to run the spell checking during the editing phase? I use aspell > with vim, at it highlights words that it doesn't recognize as I'm typing. > > Cheers, > > -- > José María (Chema) Mateos || https://rinzewind.org -- Bryan K. Walton 319-337-3877 Linux Systems Administrator Leepfrog Technologies, Inc
Re: ask-yes for sending?
On Wed, Jun 08, 2022 at 01:55:06PM -0500, Bryan K. Walton wrote: To be precise, what I would like is the ability to cancel sending when my ispell check shows me something that requires manual intervention. It would be nice to have a confirmation come up after spell checking, but before sending. Then, I could cancel the actual send and fix the error, and then send again. I know this is not exactly what you've asked for, but wouldn't it better in that case to run the spell checking during the editing phase? I use aspell with vim, at it highlights words that it doesn't recognize as I'm typing. Cheers, -- José María (Chema) Mateos || https://rinzewind.org
Re: ask-yes for sending?
On Tue, Jun 07, 2022 at 08:31:50PM +0200, Marcus C. Gottwald wrote: > > In order to avoid accidentally sending a message because of fat > fingers, I moved from using "y" to "Y": > >bind compose y noop >bind compose Y send-message > Thanks for the suggestion. While a nice idea, I don't think this will work in my case. I already have the following: # Automatically call the spell checker before sending mail macro compose y "" 'Send message w/spell check' To be precise, what I would like is the ability to cancel sending when my ispell check shows me something that requires manual intervention. It would be nice to have a confirmation come up after spell checking, but before sending. Then, I could cancel the actual send and fix the error, and then send again. -Bryan
Re: ask-yes for sending?
On Wed, Jun 08, 2022 at 02:32:02AM +, Sam Kuper wrote: Instead of having Mutt invoke your MTA, you could have it invoke a script that asks you if you really want to send that email, and that only invokes your MTA if you answer affirmatively. You could perhaps modify msmtp-queue to do this, for instance. That's interesting. Could you say a bit more about how one might do that? - DLD
Re: ask-yes for sending?
On Tue, Jun 07, 2022 at 10:26:50AM -0500, bwalton.22...@leepfrog.com wrote: > Is there a way to configure my muttrc so that when I press "y" to send > the message, it will prompt for confirmation before actually sending? Instead of having Mutt invoke your MTA, you could have it invoke a script that asks you if you really want to send that email, and that only invokes your MTA if you answer affirmatively. You could perhaps modify msmtp-queue to do this, for instance. -- A: When it messes up the order in which people normally read text. Q: When is top-posting a bad thing? () ASCII ribbon campaign. Please avoid HTML emails & proprietary /\ file formats. (Why? See e.g. https://v.gd/jrmGbS ). Thank you.
Re: ask-yes for sending?
On Tue, Jun 07, 2022 at 08:31:50PM +0200, Marcus C. Gottwald wrote: > bwalton.22...@leepfrog.com asked (Tue 2022-Jun-07 10:26:50 -0500): >> Is there a way to configure my muttrc so that when I press "y" to >> send the message, it will prompt for confirmation before actually >> sending? > > In order to avoid accidentally sending a message because of fat > fingers, I moved from using "y" to "Y": > >bind compose y noop >bind compose Y send-message Instead of having Mutt invoke your MTA, you could have it invoke a script that asks you if you really want to send that email, and that only invokes your MTA if the answer is yes. (You could probably modify msmtp-queue to do this, for instance.) -- A: When it messes up the order in which people normally read text. Q: When is top-posting a bad thing? () ASCII ribbon campaign. Please avoid HTML emails & proprietary /\ file formats. (Why? See e.g. https://v.gd/jrmGbS ). Thank you.
Re: ask-yes for sending?
On Tue, Jun 07, 2022 at 08:31:50PM +0200, Marcus C. Gottwald wrote: > > bwalton.22...@leepfrog.com asked (Tue 2022-Jun-07 10:26:50 -0500): > >> Is there a way to configure my muttrc so that when I press "y" to send >> the message, it will prompt for confirmation before actually sending? > > In order to avoid accidentally sending a message because of fat > fingers, I moved from using "y" to "Y": > >bind compose y noop I would use something like this to remind me why y is not working: | macro compose y ":echo 'Use Y to send the message.'" >bind compose Y send-message Dennis
Re: ask-yes for sending?
bwalton.22...@leepfrog.com asked (Tue 2022-Jun-07 10:26:50 -0500): > Is there a way to configure my muttrc so that when I press "y" to send > the message, it will prompt for confirmation before actually sending? In order to avoid accidentally sending a message because of fat fingers, I moved from using "y" to "Y": bind compose y noop bind compose Y send-message Cheers, Marcus -- Marcus C. Gottwald ·· @mcg:cheers.de