On Tue, Aug 28, 2001 at 01:42:10PM -0400, Dave Sill wrote:
> Mate Wierdl <[EMAIL PROTECTED]> wrote:
>
> >Based on the contents of a header field, I'd like to redirect mail to
> >_two_ addresses.
> >
> >With one address, I can do
> >
> >|condredirect [EMAIL PROTECTED] sh -c '822field okidoki | grep [EMAIL PROTECTED]'
> >
> >The best thing I could come up with is putting the two addresses in a
> >.qmail file, and condredirecting the message to the .qmail file.
>
> Why not just use two condredirect program deliveries? E.g.:
>
> |condredirect [EMAIL PROTECTED] sh -c '822field okidoki | grep [EMAIL PROTECTED]'
> |condredirect [EMAIL PROTECTED] sh -c '822field okidoki | grep [EMAIL PROTECTED]'
Because the second line will not be seen if the command in the first
line succeeds.
>
> Or conredirect to an alias:
>
> |condredirect foo sh -c '822field okidoki | grep [EMAIL PROTECTED]'
>
> then create ~alias.qmail-foo containing:
>
> &[EMAIL PROTECTED]
> &[EMAIL PROTECTED]
This is what I did as I described in the message. This does not seem
simple enough---I would just like condredirect more than one addresses.
Mate