Set a default To value based on current folder name?
Hello, 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 mutt-users@mutt.org value when composing a new mail. Thanks, -- Nicolas
Re: Set a default To value based on current folder name?
On Mon, Feb 22, 2010 at 12:51:55PM +0100, Nicolas KOWALSKI wrote: Hello, 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 mutt-users@mutt.org value when composing a new mail. Thanks, -- Nicolas 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? -- Zeerak Waseem pgpvrq6iBYSxb.pgp Description: PGP signature
Re: Set a default To value based on current folder name?
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 mutt-users@mutt.org 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? - Jostein
Re: Set a default To value based on current folder name?
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 mutt-users@mutt.org 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: debian-u...@lists.debian.org' folder-hook =list.debian-backports 'my_hdr To: backports-us...@lists.backports.org' folder-hook =list.debian-french 'my_hdr To: debian-user-fre...@lists.debian.org' folder-hook =list.mutt 'my_hdr To: mutt-users@mutt.org' ...[and so on]... Thanks a lot, -- Nicolas