Hi Conrad,
> I cottoned on to using
>
> %(formataddr {to})%(formataddr {cc})%(putstr)
>
> as a merge trick, but there's no way of applying %(addr) to a list,
> right? So your nice grep regexp there looks like it'd be one of the
> best ways of extracting the pure addresses after all..?
Ken's explained that side of things. I did have another idea.
$ cat 2
from: [email protected]
to: Foo Bar <[email protected]>, [email protected]
cc: Xyzzy <[email protected]>
resent-to: [email protected]
resent-cc: [email protected]
$
$ whom 2
whom: illegal header line -- resent-to:
whom: illegal header line -- resent-cc:
whom: re-format message and try again
$
$ sed -i 's/^resent-//' 2
$ whom 2
-- Network Recipients --
foo at bar.example.com
xyzzy at example.com
xyzzy2 at example.com
postmaster at example.com
abuse at example.com
$
--
Cheers, Ralph.