Author Topic: Protected Folders Not Protected  (Read 1872 times)

Offline syc

  • Jr. Member
  • **
  • Posts: 14
Protected Folders Not Protected
« on: November 23, 2006, 02:01:57 PM »

If you have 'protect_default_folders' turned on in the configuration to protect folders listed in the 'default_imap_folders' configuration option, clicking on any other folder will cause all folders to be unprotected.


The set_busy function in app.js doesn't care what it's enabling / disabling. This function is called when the http_response function is called in regards to checking/unchecking a folder (subscribing/unsubscribing).


Find the function: this.http_response = function(request_obj) in app.js

Change this line:
Code: [Select]

To this:
Code: [Select]
 if ( dblchk = request_obj.get_text() ) {
   if ( dblchk.indexOf('// subscribed') < 0 && dblchk.indexOf('// unsubscribed') < 0 ) {
  } else {

This will cause the response sent back in to be checked. If we're subscribing or unsubscribing, then don't call set_busy.