> 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
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.
Not only that but the sed does not handle Received continuation
lines either:
by wierdlmpc.msci.memphis.edu with SMTP; 7 Jan 1999 05:50:05 -0000
Date: 7 Jan 1999 05:47:00 -0000
Message-ID: <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
So the above script breaks almost every message.
Mate