January 2002
Beginner
480 pages
13h 15m
English
Now it’s time to examine the script step by step. We’ll concentrate mostly on the additions to the original cvsmsg script.
We bring in a string function that we’ll be needing later in the script to chop up JIDs into their component parts (username, hostname, and resource):
import jabber
import sys
from string import split
Server = 'gnu.pipetree.com'
Username = 'cvsmsg'
Password = 'secret'
Resource = 'cvsmsg'
cvsuser = sys.argv[1]
message = ''
Read now
Unlock full access