Hi everybody,

i've got some problems with setting the attributions lines
in dependence of the folder and the reply-function used
(e.g. reply, group-reply and list-reply).

My goal is to set up separate attributions for replies to personal
mails (which should be personalised), for group-replies (which
of course should name the sender to whoms mail i replied) in the
adequate language - which is the problem.

The macros...

| macro index g ':set attribution="%n schrieb am %[%d.%m.%Y]:\n" \
|    <enter><group-reply>'
| macro index r ':set attribution="Hallo %v,\n" \
|    <enter><reply>'

... work as expected. Then i tried the following:

| folder-hook . "macro index L 'set attribution="%n schrieb \
|    am %[%d.%m.%Y]:\n"'<enter><list-reply>"

It doesn't work. Then after a suggestion from Rocco i tried to source
the macros from separate files:

| folder-hook . "source /home/lars/.mutt/.attributions"
| folder-hook %personal "source /home/lars/.mutt/.attributions.personal"
| folder-hook %englishlists "source /home/lars/.mutt/.attributions.english"

Again it didn't worked out as i hoped. Has anybody an idea? Is it
possible?

I tried other ways too, for example checking for multiple recipients
with a send-hook

| send-hook "~C @.+@" 'set attribution="%n schrieb am %[%d.%m.%Y]:\n"'

It doesn't do it. I guess it's because mutt checks every recipient
against the regexp and not the whole to/cc-header?

TIA.

regards,
- Lars.

Reply via email to