Em 11-08-2013 14:30, Fernando de Oliveira escreveu: > I can get the number of new emails from google with: > > count=$(wget -q -O - https://mail.google.com/a/gmail.com/feed/atom > --http-user=${gmail_login} --http-password=${gmail_password} > --no-check-certificate | grep fullcount | sed 's/<[^0-9]*>//g') > > I would like to do the same with yahoo. > > The login page is at: > > https://login.yahoo.com/ > > The inbox is at > > https://br-mg6.mail.yahoo.com/neo/launch?.rand=c6cm7ic8l12ph > > Have found a perl script for something similar, bu could not understand > even what it was trying to do if mail or anything else. > > I would like to do it as a bash script, not perl, that have not learned. > > Help is much appreciated. Thanks. >
Perhaps, this needs some clarification. I used to use addons in Firefox and Seamonkey to check for mail periodically. From time to time, something I have updated in this LFS system breaks the interaction with some software for notification (probably notify-send), so the notifications stop to be recorded at the panel. Sometimes, this affects Thunderbird, too. Since version 21, or 20, cannot really remember, without other related updates, this happened again after FF was updated. Today, I checked, it is also affecting SM. But some notifications from TB appear at the panel. Today, I found that peace of code and created a bash script that does what I want, only for gmail, using notify-send, aplay, running from a small x-term that I keep open, and independent of any other browser or mail program. For gmail, I do not need to bother anymore. But the mail account I use for BLFS and LFS are at yahoo. With all these explanations, I hope that it is correct to not consider this an off-topic question. Thanks, again. -- []s, Fernando -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
