|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-22 14:17 UTC] Ruben at e-builds dot com
[2006-07-23 11:56 UTC] tony2001@php.net
[2006-07-24 10:21 UTC] Ruben at e-builds dot com
[2006-07-24 10:29 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 03:00:02 2025 UTC |
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