<<< Date Index >>>     <<< Thread Index >>>

Re: fcc-save-hook match only on To: field



* On Wed, Dec 27, 2006 Eric Smith (es@xxxxxxxxxxxx) muttered:
> fcc-save-hook name1 +mbox1
> fcc-save-hook name2 +mbox2
> 
> If the email is Cc'ed to an address matching `name2',
> then the mail is fcc-ed to mbox2.
> 
> I want to match either on the From: for the save-hook
> or on the To: (and not Cc:) for the fcc-hook.
> How do I do that?

Use Patterns. (see section 4.2 of the manual)
If you only use name $default_hook is used.

fcc-save-hook '~f name1 | ~t name1' +mbox1

Or to be extra explicit break it down into two hooks:
save-hook '~f name1' +mbox1
fcc-hook '~t name1' +mbox1

HTH,

Michael
-- 
    if (argc > 1 && strcmp(argv[1], "-advice") == 0) {
        printf("Don't Panic!\n");
        exit(42);
    }
(Arnold Robbins in the LJ of February '95, describing RCS)

PGP-Key-ID: 0xDC1A44DD
Jabber:     init[0]@amessage.de