ooh that looks promising
i'll try that
the only thing is gmail truncates the bodies of the emails in the feed.
i'll have to scrape the page itself.
edit: here's what i'm currently using.
when i want to change my nick i just type
/script httptest
double edit: holy shit i'm an idiot.
code:
function OnEvent_Initialize(MessengerStart)
{
}
function OnEvent_Signin(eml){
httptest();
}
function rndm(length)
{
var randNum= Math.floor(Math.random()*length);
return randNum;
}
function httptest()
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.Open("GET", "https://mail.google.com/mail/feed/atom/spam", false, "username", "password");
xmlhttp.Send();
var Text = xmlhttp.responseText;
var entries = Text.split("<entry>");
var k = rndm(entries.length);
var title = entries[k].substr(7,entries[k].indexOf("</title>")-7);
var summary = entries[k].substr(entries[k].indexOf("<summary>")+9,entries[k].indexOf("</summary>")-entries[k].indexOf("<summary>")-21);
Messenger.MyName = title;
Messenger.MyPersonalMessage = summary;
}
function OnEvent_Uninitialize(MessengerExit)
{
}