You can use the script below on many Unix-based systems. On Windows the
telnet command doesn't work the same way.

If you are familiar with socket programming, it is fairly simple to write a
tool for other platforms.

Note, the script below uses ihave to send articles in to the server.

- Roydon L.


#! /bin/sh
## Post an article via IHAVE.
## args: filename server

if test "$2" = "" ; then
  echo usage: $0 filename server
  exit 1
fi
if test ! -f $1 ; then
  echo $1: not found
  exit 1
fi

# suck msg-id out of headers, keep the brackets
msgid=`sed -e '/^$/,$d' $1 | egrep '^[Mm]essage-[Ii][Dd]: ' | \
  sed 's/.*-[Ii][Dd]: //'`
echo $msgid

( sleep 5
  echo IHAVE $msgid
  sleep 3
  cat $1
  sleep 1
  echo "."
  sleep 1
  echo QUIT ) | telnet $2 119


<[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
>
> How would I post a properly formatted message directly to dnews without
using a newsreader?  All the header info is correct, I just need to get it
to dnews.
>
> Thanks
>


Reply via email to