Stephen van den Berg suggested to Jim Osborn,
| However, if it's this functionality you're looking for (and you are certain
| that the mails are coming from a well-behaved mailinglist (like SmartList)),
| then we can do it all in one:
|
| echo `formail -IResent- -t -r -z -x To: -s `
|
| or
|
| echo `formail -IResent- -trzx To: -s `
|
| for short.
But why "echo `command`"? Why not just
formail -IResent- -trzx To: -s
by itself? The only effect of echo ` ... ` is to reduce newlines to spaces;
since Jim is saving the output to a file it probably is a better idea to have
one address per line than all of them strung together with a newline only at
the end of a group that was processed together. (That depends on what Jim
is doing with the file, of course.)