Changeset 4576 for branches/2.2.0.1/expressoMail1_2/inc
- Timestamp:
- 06/02/11 14:59:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/expressoMail1_2/inc/class.ScriptS.inc.php
r4551 r4576 35 35 $this->username = $this->scriptfile; 36 36 37 $this->reply = "";38 $this->rules = "";39 $this->errstr = "";40 $this->size = "";37 $this->reply = ""; 38 $this->rules = ""; 39 $this->errstr = ""; 40 $this->size = ""; 41 41 42 42 $this->continuebit = 1; 43 $this->sizebit = 1;43 $this->sizebit = 2; 44 44 $this->anyofbit = 4; 45 45 $this->keepbit = 8; … … 254 254 $continue = 1; 255 255 $tmpSubject = ""; 256 257 $a = 0; 258 256 259 257 260 // Recebe os valores das regras; … … 278 281 $rule['unconditional'] = 0; 279 282 283 if( $a < 2 ) 284 { 285 error_log( print_r($tmp, true), 3, "/tmp/log" ); 286 287 error_log( print_r($rule, true), 3, "/tmp/log" ); 288 289 $a++; 290 } 291 292 280 293 if (!$rule['from'] && !$rule['to'] && !$rule['subject'] && !$rule['field'] && empty($rule['size']) && $rule['action']) { 281 294 $rule['unconditional'] = 1; … … 370 383 if ($rule['size'] != '') 371 384 { 372 if ( $rule['size'] == 0 && $rule['gthan'])385 if ( $rule['size'] == 0 && $rule['gthan'] ) 373 386 { 374 387 $xthan = " :over "; … … 381 394 } 382 395 383 if ($rule['size'] > 0) { 396 if ( $rule['size'] > 0 ) 397 { 384 398 $xthan = " :under "; 399 385 400 if ($rule['gthan']) 386 401 $xthan = " :over "; … … 427 442 $newruletext .= "discard;"; 428 443 } 429 if ($rule['keep']) 444 445 if ($rule['keep'] ) 446 { 430 447 $newruletext .= "\n\tfileinto \"INBOX\";"; 431 //if ($rule['keep']) $newruletext .= "\n\tkeep;"; 448 } 449 432 450 if (!$rule['unconditional']) 451 { 433 452 $newruletext .= "\n}"; 453 } 434 454 435 455 $continue = 0;
Note: See TracChangeset
for help on using the changeset viewer.