Re: hooks and automatically determining from address : complicated way

2010-01-24 Thread Simon Ruderich
On Thu, Jan 21, 2010 at 04:02:44AM +0100, E. Prom wrote: Hi, [snip] An ugly way would be to write a script that reads the aliases files and writes all the hook-lines. Dozens of hooks lines... I don't like it. Hi, I've had a similar problem: I wanted to automatically encrypt all mails

Re: hooks and automatically determining from address : complicated way

2010-01-24 Thread David J. Weller-Fahy
* E. Prom e3p...@gmail.com [2010-01-20 23:04 -0400]: Ideally, I would then just source `external_program`, where external_program returns the name of a mutt conf file changing all these variables. [snips] My problem is that I need to pass this external_program the address I'm writing to.

hooks and automatically determining from address : complicated way

2010-01-20 Thread E. Prom
Hi, I want to change some variables (from, crypt_autosign, etc.) in a hook depending of which address I'm writing to. But as I don't want to write a hook-line for each possible address, I'd like to use an external program (such as grep) to look in multiple aliases files, and return something