Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: fxlacroix on September 06, 2010, 08:30:38 AM

Title: sound notifier and url of last received mail
Post by: fxlacroix on September 06, 2010, 08:30:38 AM
Hi

i m using the soundnotifier and i would like to send to another application the url of the last incoming mail.

i know the url should look like
?_task=mail&_action=show&_uid=28&_mbox=INBOX

but don't know how to get this id (28)

thx for your help !!
Title: sound notifier and url of last received mail
Post by: fxlacroix on September 06, 2010, 09:47:15 AM
i just found it in the rcmail variable, in client javascript

rcmail.message_list.rows <- get the last rows and find uid

++
Title: sound notifier and url of last received mail
Post by: rosali on September 06, 2010, 11:31:27 AM
Please post your modifications. Perhaps it would make sense to include them into my plugin.