> Is there any way to do a grep on a spool directory searching for an email
> address and then moving those file into another directory?

With newer versions that have hold support I think you would want something
like this:

mailq | awk  'BEGIN { RS = "" } \
  / user@example\.com$/ { print $1 } \
  ' | tr -d '*!' | postsuper -h -

This will put all mail for [EMAIL PROTECTED] on hold.

This is taken from the example in man postsuper.

--Eric


Reply via email to