Roundcube Community Forum

 

Right Click Functionality

Started by mfallon, February 28, 2009, 02:18:13 PM

Previous topic - Next topic

Do you think right click funtionality is a good idea?

es
181 (91.9%)
o
6 (3%)
aybe
10 (5.1%)
on\'t Care / Know
0 (0%)

Total Members Voted: 193

mfallon

As RoundCube has been developed using AJAX, can I ask if there is any plan to add the ability to right click messages and show a list of functions, such as reply, forward, mark as read, delete, etc. when you right click on a message, or even a folder.

Don't know if anyone has already developed this as a plug-in or if it could only be included in the core build process.

Thanks, Matt

george2390

I think thats a great idea :). I hope they decide to add this to RoundCube:)

JohnDoh

I have made a plugin which adds a context menu to the message list. You need to latest SVN trunk version to use it. take a look here RoundCube Patches & Plugins
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

lacri

great work John and works perfect !!!

Can you extend the PlugIn still so far which one several message mark can and if a right click command is given this to all selected messages is applied.

JohnDoh

lacri: making it work with multiple selection was a good idea, i have modifed the plugin to do this. you can get the new version from the site now.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

lacri

wow John many many thanks !!!

that could be done fast and this works beautifull !!!

lacri

Another idea would be right click menu for the folder list is however somewhat more complicated as I thinks one only the messages in the background there for loading would have to those the command to be applied is.

E.g. folder emptying/all messages delete, mark all messages as read/unread ...

what do you think?

lacri

hi John

i have found a little Bug,
Moving Messages to Trash dont work when selecting more than one message. I dont found why.

Thx in advance

JohnDoh

D'oh you're quite right. Thats what happens when you do things too quickly! There is a new version with multiple delete working.

I'm not sure about context menu on the folder list. From a quick look at the code empty and compact should be possible, mark all as read/unread would be a bit more tricky as we dont have a message list until the folder is open.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

lacri

Hello John,

a thing has I still discovered if man in the trash folder is should the text in context menu delete messages to have and in all other folder move massage to trash, the ENV Vars be correct and is however not seem set not to be evaluated.

Completely thank you for your assistance and the fantastic Plugin!!!

lacri

I have found a solution.

add in contextmenu.js after the line
rcmail.add_onload('rcm_contextmenu_load()');
this
rcmail.addEventListener('listupdate', function(evtprops) { rcm_contextmenu_load(); } );
with the Event listupdate reloads the contextmenu_load function and becomes the correct env.mailbox var to display the correct delete Message in context.

JohnDoh

thanks lacri, i think the delete function really doesnt like me very much. I have made a fix similar to your suggestion. the new version is available now. hopefully that is all the bugs squished.....
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

lacri

#12
Thanks John works realy good, only the Internet Explorer not like this and will not display the context menu after klicking on a folder.

i use the listupdate Event to reinitilize the rcm_contextmenu_init('messagelist tbody tr');
rcmail.addEventListener('listupdate', function(evtprops) { rcm_contextmenu_init('messagelist tbody tr'); } );and after this works fine in all browsers for me :) i hope this is correct

JohnDoh

thanks again lacri. I have made the change as you suggested. I am not overly happy with it as i think it means the events are added twice in most cases but i dont have time to look for a better solution right now, if any one has any suggestions please let me know.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

mfallon

Really nice to see suggestions being implemented, things like this are what makes Roundcube (IMHO) the best opensource webmail client available.

Keep up the good work guys.