Russell Nelson writes:

> Mirko Zeibig writes:
>  > Hello,
>  > I now use this alias-definition to post every mail to a list to a
>  > newsgroup as well. Any ideas to do this more efficient?
>  > Thanx
>  > Mirko
>  > ** /var/qmail/alias/.qmail-all **
>  > | { echo "Newsgroups: local.announce"; cat - } | sed '/^Received:/d' |
>  > sed '/^\ \ by\ unknown\ with\ SMTP/d' | rpost localhost -M
> 
> You've already implemented this fairly programmer-efficiently.  It
> works, doesn't it?  So all the investment has already been made and
> now it's starting to pay that off.  I'm sure it's run infrequently
> enough so that machine-efficiency is of no concern.

This approach will break if something is tweaked in the systems, headers
will look slightly differently, or someone happens to quote a message with
full headers in the body of the post.  The sed will happily remove those.

Reply via email to