On 29.04.14 14:01, Karl Voit wrote:
> I've got a special requirement of setting the From-address according
> to the To-address of emails I am sending.

That's a pretty standard thing to do. For description of how easy it
is in mutt, please read sections:

19. Change Settings Based Upon Message Recipients
5.1. Message Matching in Hooks

The latter includes an example which exactly matches your requirement.
Just bang in one for each To-address, and you're done. If you have a
bunch of recipients for whom a common return address would do, then I'd
use Groups.

Since the manual seems to be a stranger, it may not be out of place to
remind that pressing <F1> in mutt is normally all that is required to
bring it up.

...

> I've read about send-hook and found [1] but I am not able to apply
> this to get the result I want to achieve.

It is worth reading the abovementioned sections, and searching in the
manual for definitions and explanations of anything not understood, such
as:

Table 4.4. Pattern modifiers

where you might decide whether to use ~t (as in the example) or ~C.

You might also like to read:

Example 4.3. Specifying a ?default? hook

Maybe strong coffee, prior to reading, then a few experiments? ;-)

Erik

-- 
It's always sad when the fleas leave, because that means your dog is dead.
                                                      - Wesley T. Williams

Reply via email to