Skip to content

Commit

Permalink
N°5094 Handle MOVE_MESSAGE code in debug log (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Goiffon authored Apr 19, 2022
1 parent a0b16e1 commit 04120f3
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions classes/mailinboxesemailprocessor.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,33 +119,37 @@ protected function GetInboxFromSource(EmailSource $oSource)
protected function GetActionFromCode($iRetCode)
{
$sRetCode = 'Unknown Code '.$iRetCode;
switch($iRetCode)
{
switch ($iRetCode) {
case EmailProcessor::NO_ACTION:
$sRetCode = 'NO_ACTION';
break;
$sRetCode = 'NO_ACTION';
break;

case EmailProcessor::DELETE_MESSAGE;
$sRetCode = 'DELETE_MESSAGE';
break;
$sRetCode = 'DELETE_MESSAGE';
break;

case EmailProcessor::PROCESS_MESSAGE:
$sRetCode = 'PROCESS_MESSAGE';
break;
$sRetCode = 'PROCESS_MESSAGE';
break;

case EmailProcessor::PROCESS_ERROR:
$sRetCode = 'PROCESS_ERROR';
break;
$sRetCode = 'PROCESS_ERROR';
break;

case EmailProcessor::MARK_MESSAGE_AS_ERROR:
$sRetCode = 'MARK_MESSAGE_AS_ERROR';
break;
$sRetCode = 'MARK_MESSAGE_AS_ERROR';
break;

case EmailProcessor::MARK_MESSAGE_AS_UNDESIRED:
$sRetCode = 'MARK_MESSAGE_AS_UNDESIRED';
break;

case EmailProcessor::MARK_MESSAGE_AS_UNDESIRED:
$sRetCode = 'MARK_MESSAGE_AS_UNDESIRED';
break;
case EmailProcessor::MOVE_MESSAGE:
$sRetCode = 'MOVE_MESSAGE';
break;
}
return $sRetCode;

return $sRetCode;
}

/**
Expand Down

0 comments on commit 04120f3

Please sign in to comment.