* glphvgacs <darwinsker...@gmail.com> [2014-02-02 14:28 -0600]:
> > ++ 02/02/14 14:05 -0500 - glphvgacs:
> > >when starting the Mail composition in mutt, is there a way skip the
> > >'To:' header by filling it up based on a given pattern?
> 
> is there a way to add the '\n' there?

I didn't find a way to add the '\n', instead I looked for another way to
skip that prompt entirely.  For each mailing list you want to use in
this way, do the following.

#v+
folder-hook .                           "unset autoedit; set edit_headers=yes"
folder-hook '=lists\.mutt-users'        "set autoedit=yes; set edit_headers=yes"
folder-hook .                           "unmy_hdr To:"
folder-hook '=lists\.mutt-users'        "my_hdr To: mutt-users@mutt.org"
#v-

Note that both "set autoedit=yes" and "set edit_headers=yes" together
are what gets you to the message without setting the recipient first.
Also note that the folder-hook to execute in all other folders is based
on my defaults, change to suit.  Also, also note that the folder name is
based on my folder layout, not yours, so that'll have to change.

See section "3.18. autoedit" in TFM.

Regards,
-- 
dave [ please don't CC me ]

Attachment: pgp4rUExapHvG.pgp
Description: PGP signature

Reply via email to