[Mrpostman-developers] Unread message support for Yahoo
Brought to you by:
chris_humphreys,
mrbook
|
From: David Lu <da...@ed...> - 2006-08-26 01:20:41
|
Hi All,
I added support for retrieving only unread emails in Yahoo.
Assuming all you are interested in are the unread messages,
and most of your inbox contains read messages, this patch
speeds up retrieval times tremendously.
Below is the diff between the original (downloaded Aug 25) and
my changes. Basically I use the regular expression that
matches only messages displayed with the CSS class "msgnew".
- David -
dlu@localhost$ diff yahoo.script.sav yahoo.script
70a71,74
> info.options["onlyUnread"].order = 5
> info.options["onlyUnread"].value = false
> info.options["onlyUnread"].label = "Unread mail only"
> info.options["onlyUnread"].description = "Get the unread mail only"
193a198,200
> if (info.options["onlyUnread"].value)
> msgpat = "<tr
class=msgnew>.+?href=\"([^\"]*ShowLetter\?MsgId=([^&]+)&[^\"]*&box=([^\"]*))\".*?<td.*?<td[^>]*>(\d+)([a-zA-Z]*)<.+?<\/tr>"
> end
|