Yes Tim But this will not match if the mail is From: foo and To: bar, baz
-- - Eric Smith Tim Gray said: > On Dec 08, 2011 at 10:39 PM +0100, Eric Smith wrote: > >So if it is a mail from one of three names and the other two names are > >in ~C (To: or Cc:), then it is a match. > >What is the smartest way to specify this logic with an > >fcc-save-hook? > > If I understand correctly, the following should do it. It's a hook > that has all three recipients in the To: or CC: fields which sets > the fcc/save folder to 'project_folder', followed by three > individual hooks for the separate people. > > fcc-save-hook '~C foo ~C bar ~C baz' project_folder > fcc-save-hook '~C foo' foo_folder > fcc-save-hook '~C bar' bar_folder > fcc-save-hook '~C baz' baz_folder > > It's in the order it is because hooks are matched in the order they > appear in the file. So you want your group hook to match before the > individual ones... otherwise the 'foo' hook would match both 'foo' > only messages and the group ones.