0 indicates no messages were moved, not an error. Error messages will
be transmitted to the user via notifications, if necessary.
* string).
* </pre>
*
- * @return mixed False on failure, or an object (see
- * _generateDeleteResult() for format).
+ * @return mixed If messages were deleted, data as returned by
+ * _generateDeleteResult(). Else, true.
*/
public function reportSpam()
{
$change = $this->_changed(false);
$indices = new IMP_Indices($this->_vars->uid);
- $result = false;
+ $result = true;
if (IMP_Spam::reportSpam($indices, $this->_vars->spam ? 'spam' : 'notspam')) {
$result = $this->_generateDeleteResult($indices, $change);