Index: program/js/app.js
===================================================================
RCS file: /cvsroot/roundcubemail/roundcubemail/program/js/app.js,v
retrieving revision 1.38
diff -u -r1.38 app.js
--- program/js/app.js	27 Mar 2006 19:07:13 -0000	1.38
+++ program/js/app.js	31 Mar 2006 19:34:10 -0000
@@ -2916,7 +2916,10 @@
       case 'delete':
       case 'moveto':
         if (this.env.action=='show')
-          this.command('list');
+          if (this.env.next_uid)
+            this.command('nextmessage');
+          else
+            this.command('list');
         break;
 
       case 'list':
