Mailstatus in Skype
You all know the troubles with overflowing inboxes. I'm a bit fan of Inbox Zero and I found a lot of ways to work fast with my mails. I did switch off signaling ingoing mails, I use a lot of filtering and a good folder structure.
But sometimes my own lazyiness get into my way. So I started to put "Inbox Zero" into my skype status if I get my box empty. But after some times I decided to automatised this message.
I do know that Patrice does automated Skype updates with his Mac. After a quick search I found out that on Windows Skype has a COM-Api and they even provide a little PHP Example. With PHP it is also pretty easy so to acess an IMAP inbox (MS Exchange also provide a IMAP access). So I wrote a quick script that updates my Skype-Message:
$mail = imap_open('{mail.example.com}INBOX','leo.buettiker', 'password');
// Create a Skype4COM object:
$skype = new COM("Skype4COM.Skype");
// Create a conversion object:
$convert = $skype->convert;
$convert->language = "en";
// Start the Skype client:
if (!$skype->client()->isRunning()) {
$skype->client()->start(true, true);
}
while(true) {
imap_check($mail);
$number = imap_num_msg($mail);
$skype->CurrentUserProfile()->MoodText=
"Leo has currently $number mails in his inbox";
sleep(5);
}
This does not only demonstrate how you can overcom your own lazyiness with open comunication and automated tools. It's in my point of view also a nice example what it's possible with PHP outside of the classical website rendering.
comments
add a comment
The Trackback URL to this comment is:
http://leo.freeflux.net/blog/plugin=trackback(2718).xml
This blog is gravatar enabled.
Your email adress will never be published.
Comment spam will be deleted!





