Automating your mail storage creation in Hotmail

Chickenfoot is a great browser automation tool. With simple javascript commands like click("Submit") you can have the computer click on the button labeled "Submit". So, when can this come in handy? What about handling some automation in you online mail box.

For example. here is a Chickenfoot script which will create Folders for you in Hotmail:

var syms = "abcdefghijklmnopqrstuvwxyz"
for(var i = 0; i < syms.length; i++)
{
pick("Mark as unread listbox", "[New folder...]")
enter("Folder name:", syms[i])
click("Save")
}

So, now you have a folder for every letter! Great and much quicker then doing it by hand. But just having the directories won't fix anything. We now add filters to move the messages to the right folder when they come in, automatically. Go to the "Options > Automatically sort e-mail into folders" and run the following code in the Chickenfoot pane:

var syms = "abcdefghijklmnopqrstuvwxyz"
for(var i = 0; i < syms.length; i++)
{
click("New filter")
find("first textbox").element.focus()
enter("first textbox", syms[i])
find("first textbox").element.blur()
pick("From name")
pick("contains")
check(syms[i])
click("Save")
}

Shame is, everybody has a limit on the number of filters they can run, so you will run out of filters at "o" so var syms = "aeijotu" may be a better choice.