Well one thing I've noticed is on your on *:SOCKOPEN: event you need to add the proper header information in that event. Your on *:SOCKREAD event will not return anything if you don't input the proper infomation in the on *:SOCKOPEN event.
i.e.
NOTE that <info here> is only a example, and is not a suitable form to enter when using the GET syntax in sockets.
Example of sockwrite GET
sockwrite -n $sockname GET /search/info=This+is+a+search HTTP/1.1
It helps so set a variable in the calling alias with the GET information and use the variable in the <info here> slot.
on *:SOCKOPEN:mail: {
sockwrite -n $sockname GET <info here> HTTP/1.1
sockwrite -n $sockname Host: pop.gmail.com
sockwrite -n $sockname Connection: Keep-Alive
sockwrite -n $sockname Content-Type: text/html
sockwrite -n $sockname $crlf
echo Open!
}
Or something of that design. You need to figure out how gmail works with the sockets first. But using something similiar to above, your sockread event just might return something.
try:
/help sockets
You also do not need the . prefix in this script. The "." prefix is for halt default text on a command. In a script if you did
.nick Speedo_Torpedo
;or for another example...:
.fullname King Salami
You would not see the "You are now known as Speedo-Torpedo." no text will pop up. Same with the /fullname command. To execute a command quietly outside of a script use //.command