[Tickets #10302] Re: Report as spam shown within message inside Spam folder

bugs at horde.org bugs at horde.org
Tue Jul 5 19:57:18 UTC 2011


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/10302
------------------------------------------------------------------------------
  Ticket             | 10302
  Updated By         | kareem.dana at gmail.com
  Summary            | Report as spam shown within message inside Spam folder
  Queue              | IMP
  Version            | 5.0.7
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


kareem.dana at gmail.com (2011-07-05 19:57) wrote:

Some rudimentary debugging in message.php line 573:
if ($conf['spam']['reporting'] &&
     ($conf['spam']['spamfolder'] ||
      ($mailbox != IMP_Mailbox::getPref('spam_folder')))) {
...
}

That conditional is being resolved to true when I view a message in my  
spam folder, specifically ($mailbox !=  
IMP_Mailbox::getPref('spam_folder')) is true. Here are the logs I had  
it print out.

HORDE [imp] message.php - report as spam [pid 1681 on line 577 of  
"/usr/local/www/apache22/horde/imp/message.php"]
HORDE [imp] IMP_Mailbox Object (     [cache] => Array         (         
      [n] => Array                 (                     [0] => .       
                [4] => 1                 )              [d] => 1        
       [ro] =>              [a] =>          )      [changed] => 0      
[_mbox:protected] => Spam )  [pid 1681 on line 578 of  
"/usr/local/www/apache22/horde/imp/message.php"]
HORDE [imp] IMP_Mailbox Object (     [cache] => Array         (         
      [n] => Array                 (                     [0] => .       
                [4] => 1                 )              [d] => 1        
       [ro] =>              [a] =>          )      [changed] => 1      
[_mbox:protected] => Spam )  [pid 1681 on line 579 of  
"/usr/local/www/apache22/horde/imp/message.php"]

The first IMP_Mailbox Object is $mailbox. The second is  
IMP_Mailbox::getPref('spam_folder').  
IMP_Mailbox::getPref('spam_folder') has changed = 1. $mailbox has  
changed = 0. Not sure what changed means in this context, but I hope  
this helps. I'm using dovecot 2.0.12 as my imap server, by the way, if  
this issue is related to the imap server giving us some unexpected  
results.







More information about the bugs mailing list