<<< Date Index >>>     <<< Thread Index >>>

Re: Adding a Bcc in a send-hook



* Matthew R. Dempsky on Wednesday, February 28, 2007 at 15:27:20 -0600:
> On Wed, Feb 28, 2007 at 02:19:00PM -0700, Kyle Wheeler wrote:
>> I can decide "nah, didn't want to send it" at that point, but when I
>> exit my editor, I'm presented the "compose" menu where I can see that
>> the bcc has already been set.
> 
> When I exit my editor (mg) without saving, I'm returned to the index
> or pager (whichever I was at when I pressed 'm').

That's true. But it gave me the idea to do this entirely in the
editor. For vim it would be (simplified) something like:

send-hook <pattern> '\
set editor="vim -c \"/^Bcc: defaultbcc/s/: .*/: otherbcc/\""'

c
-- 
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>