Sorry, its a quick and dirty hack. i have need it for my 
homepage. so i dont have tested it very much. but corrections
and mails to e9625460@stud3.tuwien.ac.at about mistakes 
and problems are appreciated. 

icqsend sends icq-messages (and a url attached to each messages) 
via a console command to one or more receivers.


description of configfile
=========================

The config file (.icqsendrc) is stored in the home directory of the user.
It MUST be owned by him and MUST have the access rights 0700. 
If decided this for security reason. If there is no config file icqsend
tries to get all necessary infos (UID, PASSWORD and messagefile) 
from the command line.

The config file looks like this:

------- .icqsendrc -------
uid=UID
password=PASSWORD
url=http://yasd.dhs.org
icqhost=icq.mirabilis.com
icqport=4000
messages=sample.txt
------- .icqsendrc -------

UID        UID for login into ICQ server
PASSWORD   password for the user account
URL        homepage URL to be attached
ICQHOST    icq server to connect to
ICQPORT    port to use
MESSAGES   file which contains all the messages



description of parameters
=========================

The command line arguments are parsed after reading the config file (if 
available). So they override the values stored in it. 

So its also very easy to store default values in the config file and supply
password for the account at command line.

usage:
$ icqsend [-h] [-n] [-l d] [-i<uin>] [-p<password>] [-u <url>] [-f <msgfile> | - ]

-h            prints this help page
-f msgfile    file containing messages or stdin if file is a dash
-i uin        icq login number
-p password   password for login
-u url        optional global url to be transmitted
-n            turns url sending off. Only useful to override icqsendrc! 
              It could be useful to attach an url by default and sometimes
			  to turn it off
-q            be quiet and dont produce any output
-l d          define the log level of icq lib ( 0 <= d <= 4) - 0 means off
			  
description of msg-file
=======================

------- sample.txt -------
recevier-uin 1
text 1
receiver-uin 2
text 3
------- sample.txt -------

receiver-uin = the uin of a receiver
text         = msg to send. notice: every $-sign in the text is translated 
               to a new-line (ascii 10). so you kann send a multiline-msg 
			   without problem.
               eg: "icqsend$name" is translated to "icqsend\nname"

try icqsend with sample.txt


=========================
e9625460@stud3.tuwien.ac.at
gaudi.dyndns.org
UIN: 34550587
