Eric Hilding asked,
| An example is the first line of the full header...
|
| Received: from mail.hf.ah.cn ...yada yada yada
|
| I need to forward/reply to <anything>@<whatever>.cn (ANY MAIL
| that comes from the ".cn" domain). I'm thinking:
|
| ^Received: from *.cn ...but something doesn't look right
" *" means "zero or more spaces." You're confusing shell globbing syntax
with regexp syntax. ".*\.cn" (without quotes) will be more like it.
| The other full header line case is like:
|
| for <eric(_at_)cyberdex(_dot_)com>
|
| The "Received:" line is normally flush left, where the "for"
| line is indented. Do I need to account for blank spaces from
| the left in *any* recipe line?
No. Procmail, in egrepping header (but not body) lines, ignores the newlines
leading into indented continuation lines (or it treats them as spaces, or
something; whichever, . will match them while $ or ^ will not), so
* ^Received:.*\<for +<eric(_at_)cyberdex\(_dot_)com>
will do the trick.