Enable the 'purge' command on the Junk folder.

Applying this patch results in a interface change to the user (though
it's a very very small change) so I would like feedback on this first.


Robin

Index: program/js/app.js
===================================================================
--- program/js/app.js   (revision 371)
+++ program/js/app.js   (working copy)
@@ -3118,7 +3118,7 @@
 
       case 'list':
         if (this.env.messagecount)
-          this.enable_command('purge', 
(this.env.mailbox==this.env.trash_mailbox));
+          this.enable_command('purge', 
(this.env.mailbox==this.env.trash_mailbox || 
this.env.mailbox==this.env.junk_mailbox));
 
       case 'expunge':
         this.enable_command('select-all', 'select-none', 'expunge', 
this.env.messagecount ? true : false);

Reply via email to