small string split prob

ian iwaters at btclick.com
Sun May 12 16:53:00 EDT 2002


hi im having trouble splitting a string any help would be great!!
The RCPTTO contains a line read from a socket.
when i try to split an e-mail address into the box and domain sub parts i
get a type error on index!?

#split e-mail address
index = RCPTTO.find("@")
box = RCPTTO[0,index]
domain = RCPTTO[index + 1,RCPTTO.len()]

print box
print domain





More information about the Python-list mailing list