ID:               38188
 User updated by:  Ruben at e-builds dot com
-Summary:          imap_mail_move results in 'Notice' and script
                   execution stopped
 Reported By:      Ruben at e-builds dot com
 Status:           Open
 Bug Type:         IMAP related
 Operating System: Win XP // IIS 5.1
 PHP Version:      5.1.4
 New Comment:

adjusted title


Previous Comments:
------------------------------------------------------------------------

[2006-07-22 14:16:32] Ruben at e-builds dot com

Description:
------------
Only sometimes, but once I get it, most of the next times, when I call
imap_mail_move within a loop over the mails in an imap folder it
returns 0 though it shouldn't!  
  
In the next iteration of the loop I get the Notice:
  Notice: Unknown: No matching messages (errflg=2) in Unknown on line
0
probably at the next imap function (imap_headerinfo).

I also think, though it is a Notice, it manages to not completely let
my loop finish all the remaining iterations.

Reproduce code:
---------------
..
$cmails=imap_num_msg($imap);
for ($i = 1; $i <= $cmails; $i++) { 
        set_time_limit(120) ;
        $header = imap_headerinfo($imap, $i);
        ..
        imap_mail_move($imap, $i, 'OLT Incomplete');
        ..
}

Expected result:
----------------
for all messages to be moved to 'OLT Invomplete'
(with some conditions of course, but for simplicity not mentioned)

Actual result:
--------------
-----------------START-----------------
Connected to mailserver
  Found 4 messages. Reading unread..
  Reading unread e-mail (nr. 1)..
    IS a license request.
    Request has all the MINIMUM information. Putting into OLT..
      Checking USER
        User found by e-mail!
        User ID=16691
        User (ID:16691) doubted and updated as such!
        E-mail sent to user to activate account.
      Checking LICENSE
        Using License Number: 0330100000118
        License created in DB! (ID:34458)
        License key on Hold.
    Request successfully added in OLT! (Moved to imap folder
'Completed')
  Reading unread e-mail (nr. 2)..
    IS a license request.
    Request has all the MINIMUM information. Putting into OLT..
      Checking USER
        User not found.
        User (ID:16691) doubted and updated as such!
        E-mail sent to user to activate account.
      Checking LICENSE
         Country is unknown (no invoice would be made (Could not move
to imap folder 'Incomplete')
------------------END------------------

Notice: Unknown: No matching messages (errflg=2) in Unknown on line 0


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38188&edit=1

Reply via email to