changeset 27:e097905863b9

turn off logging
author Charlie Root
date Sun, 28 Jan 2018 11:37:00 -0500
parents b2b6c0af2383
children 538b3d58eb89
files plugins/thunderbird_labels/thunderbird_labels.php
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/thunderbird_labels/thunderbird_labels.php	Sun Jan 28 11:32:20 2018 -0500
+++ b/plugins/thunderbird_labels/thunderbird_labels.php	Sun Jan 28 11:37:00 2018 -0500
@@ -95,10 +95,10 @@
 			{
 				if ($this->rc->action == 'list')
 					$this->add_hook('render_mailboxlist', array($this, 'show_tb_label_contextmenu'));
-			  rcube::write_log('lab','ctxt: '.$this->rc->action);
+			  #rcube::write_log('lab','ctxt: '.$this->rc->action);
 			}
 			else {
-			  rcube::write_log('lab','no ctxt');
+			  #rcube::write_log('lab','no ctxt');
 			}
 		}
 		elseif ($this->rc->task == 'settings')
@@ -440,12 +440,12 @@
 			$rm[]=$m;
 		      }
 		    }
-		    rcube::write_log($this->name,"ts0: |".$rm[0]->depth."| |".($rm[0]->depth===0)."|");
+		    #rcube::write_log($this->name,"ts0: |".$rm[0]->depth."| |".($rm[0]->depth===0)."|");
 		    usort($sm,$datesSort);
 		    $depth=0;
 		    $foundSome=true;
 		    while ($foundSome) {
-		      rcube::write_log($this->name,"ts: $depth ".count($sm).' '.count($rm));
+		      #rcube::write_log($this->name,"ts: $depth ".count($sm).' '.count($rm));
 		      $foundSome=false;
 		      $tsm = array();
 		      $trm = array();
@@ -505,24 +505,24 @@
 		// belt and braces
 		if (count($unflag_uids)>0) {
 		  $flaggedMsgs = $imap->list_flags($mbox,$unflag_uids);
-		  rcube::write_log($this->name,'oldFlags: '.print_r($flaggedMsgs,true));
+		  #rcube::write_log($this->name,'oldFlags: '.print_r($flaggedMsgs,true));
 		  $fullFlags=array();
 		  foreach ($flaggedMsgs as $uid => $flags) {
 		    foreach ($flags as $flag => $x) {
 		      $pos=strpos(strtolower($flag),$toggle_label);
-		      rcube::write_log($this->name,"flag?: $flag $toggle_label $pos");
+		      #rcube::write_log($this->name,"flag?: $flag $toggle_label $pos");
 		      if ($pos>-1 && $pos<2 && !in_array($flag,$fullFlags)) {
 			$fullFlags[]=$flag;
 		      }
 		    }
 		  }
 		  if (count($fullFlags)==0) {
-		    rcube::write_log('errors',"no full flags for $toggle_label in ".print_r($flaggedMsgs,true));
+		    #rcube::write_log('errors',"no full flags for $toggle_label in ".print_r($flaggedMsgs,true));
 		    $imap->set_flag($unflag_uids, "UN$toggle_label", $mbox);
 		  }
 		  else {
 		    foreach ($fullFlags as $flag) {
-		      rcube::write_log($this->name,"UNsetting $flag in $mbox for ".join(',',$unflag_uids));
+		      #rcube::write_log($this->name,"UNsetting $flag in $mbox for ".join(',',$unflag_uids));
 		      $imap->set_flag($unflag_uids, "UN$flag", $mbox);
 		    }
 		  }
@@ -544,7 +544,7 @@
 		$out .= '</ul>
 		</div>';
 		$this->rc->output->add_gui_object('tblabelpopup_obj', 'tblabelpopup');
-		rcube::write_log('lab',"tblp $out");
+		#rcube::write_log('lab',"tblp $out");
 		$this->rc->output->add_footer($out);
 	}
 }