[PATCH] Re: Keep Forgetting Attachments!
* On 2004.06.17, in <20040617223341.GC11960@xxxxxxxx>,
* "The Doctor What" <list.mutt-users@xxxxxxxxxxxxxxxx> wrote:
>
> home directory, current directory, or what. Will it accept ~
> notation?
Yes.
> I would ask two things:
> 1) Maybe mutt could catch the header "Attach: ask" and then go
> through a screen to ask for the attachment (as if I had pressed 'a'
> after exiting the browser).
>
> 2) Anyone have a macro for vim to generate this header?
I'll do better than that, maybe. I've been wanting something a little
more that just Attach: for a while. (I still forget to use it, too.)
You'll find a patch here:
http://home.uchicago.edu/~dgc/sw/mutt/patch-1.5.6.dgc.attachprompt.1
This patch creates two new muttrc variables. Here's a clip from the
patched muttrc(5):
attach_ask
Type: boolean
Default: no
If "$attach_ask" is set, the default value for the
Attach: header (see "$attach_edit") is "ask". If it is
unset, the Attach: header is left blank by default.
attach_edit
Type: boolean
Default: no
When "$edit_headers" and "$attach_edit" are both set,
an Attach: header will be included among editable head-
ers. Here you can specify a filename to be attached
when you're done editing. If the value of the Attach:
header is a filename, that file will be attached. If it
is blank, no file will be attached. If the header is
set to "ask" or "yes", you will be prompted for an
attachment after saving your draft, and before proceed-
ing to the compose menu. See also "$attach_ask".
Please try and comment, if you find anything lacking or wrong. All in
all it's not much, but I suspect the added visual cue and (optional)
prompting will be helpful. The use of two variables is mainly to
make macros more flexible. (A macro can set/unset either variable as
appropriate to the context.)
--
-D. dgc@xxxxxxxxxxxx NSIT::ENSS
No money, no book. No book, no study. No study, no pass.
No pass, no graduate. No graduate, no job. No job, no money.
T h e U n i v e r s i t y o f C h i c a g o