[Mutt] #3251: mutt: would be nice to have a pattern for inline-encrypted mail (send2-hook)
#3251: mutt: would be nice to have a pattern for inline-encrypted mail
(send2-hook)
------------------------------+---------------------------------------------
Reporter: antonio@xxxxxxxx | Owner: mutt-dev
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: mutt | Version: 1.5.19
Keywords: |
------------------------------+---------------------------------------------
Forwarding from http://bugs.debian.org/302010
{{{
It would be nice to have a pattern (like ~g and ~G) that matches mail that
is
encrypted "inline".
As an example of how it could be very useful...
Some of the people I send mail to use pine and as such can only decrypt
inline
pgp messages. I would like to be able to make sure that when I send
messages to
them, I send the messages encrypted/signed inline. This generally works by
using a pattern of '~C pineusingfriend@xxxxxxxxxxxx', but I would like
this to
also trigger when adding them to the sending list in the compose menu
(i.e.
from a send2-hook). Within a send2-hook, changing the encryption settings
(which requires the use of "push") triggers the send2-hooks again.
Therefore, I
can't just use '~C pineusingfriend' as the pattern to match, because that
would
cause an infinite loop (every time, the command to change the encryption
settings causes the send2-hooks to be triggered again). Thus, something
like
this:
send2-hook '~C pineusingfriend' 'push pfpbpi'
causes an infinite loop. If, however, there was something like ~I that
matched "pgp inline messages", I could use:
send2-hook '~C pineusingfriend ! ~I' 'push pfpbpi'
and it would work properly.
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3251>
Mutt <http://www.mutt.org/>
The Mutt mail user agent