On Mon, Feb 22, 2010 at 03:45:32PM +0100, Jostein Berntsen wrote:
> On 22.02.10,14:07, Nicolas KOWALSKI wrote:
> > On Mon, Feb 22, 2010 at 01:10:57PM +0100, Zeerak Mustafa Waseem wrote:
> > > On Mon, Feb 22, 2010 at 12:51:55PM +0100, Nicolas KOWALSKI wrote:
> > > > 
> > > > When composing a new mail, is it possible to specify a default To 
> > > > address based on the current folder name ?
> > > > 
> > > > For example, when I am in the folder "list.mutt", I would like the 
> > > > "To:" 
> > > > field to be prefilled with the "[email protected]" value when 
> > > > composing a new mail.
> > > > 
> > > I don't know if that can be done, but couldn't a work around be that 
> > > you specified the list in your alias file?
> > 
> > I have already. 
> > 
> > I just would like to automate the process for all my mailing-lists 
> > folders, if possible.
> > 
> 
> Have you tried with folder-hook and my_hdr?

Thanks for the tip!

With the following it works perfectly:

folder-hook . 'unmy_hdr to'

folder-hook =list.debian                'my_hdr To: 
[email protected]'
folder-hook =list.debian-backports      'my_hdr To: 
[email protected]'
folder-hook =list.debian-french         'my_hdr To: 
[email protected]'
folder-hook =list.mutt                  'my_hdr To: [email protected]'
...[and so on]...


Thanks a lot,
-- 
Nicolas

Reply via email to