On 2010-09-04 20:07 +0200, E. Prom wrote: > On Saturday, 04 September 2010, 19:05:40 +0200, > Nicolas KOWALSKI <[email protected]> wrote: > > Andre Majorel <[email protected]> writes: > > > Is there a way to set a default value for To: in <mail> ? It > > > would be very useful after a folder-hook for mailing lists etc. > > > > Yes, using my_hdr. Here is an example of what is in my ~/.muttrc: > > > > folder-hook =list.debian 'my_hdr To: > > [email protected]' > > folder-hook =list.dovecot 'my_hdr To: [email protected]' > > folder-hook =list.mutt 'my_hdr To: [email protected]'
Should have thought of that ! Thanks. > This seemed great to me, but I notice that when replying a mail after > defining a default "To: address", this address is not replaced by but > added to the person's address I'm replying to. Yes, if you have this on a folder, "r" amounts to a public reply. To reply privately, you must remember to remove the list address from To: before you send. Don't know to fix that. Hopefully at some point there will be a default_to_for_new_mail variable. It seems natural for the common one recipient - one folder model. -- André Majorel http://www.teaser.fr/~amajorel/
