php 4.3.10 does not complain about boolean true feeded to foreach. new php
versions do complain about it. thanks to Henrik Andreasen
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11200
7612ce4b-ef26-0410-bec9-
ea0150e637f0
$bExpunge = true;
break;
case 'copy':
- $aUpdatedMsgs = sqimap_msgs_list_copy($imapConnection,$aUid,$targetMailbox,true,$mailbox);
+ // sqimap_msgs_list_copy returns true or false.
+ // If error happens - fourth argument handles it inside function.
+ sqimap_msgs_list_copy($imapConnection,$aUid,$targetMailbox,true);
sqsession_register($targetMailbox,'lastTargetMailbox');
break;
case 'forward':