Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is an error #25

Open
Dao-Cao opened this issue Sep 11, 2017 · 2 comments
Open

There is an error #25

Dao-Cao opened this issue Sep 11, 2017 · 2 comments

Comments

@Dao-Cao
Copy link

Dao-Cao commented Sep 11, 2017

if(sizeof($msglist)>0){
$i = 0;
for ($j = 1; $j <= sizeof($msglist); $j++) {

					   if ($msglist["$j"] == $last_uidl) {
							$i = $j+1;/*********************************/
							break;
					   }
					}
					if ($Count < $i) {
						POP35::disconnect($c);
					}
					if ($Count == 0) {
						//echo "Login OK: Inbox EMPTY<br />";
						POP35::disconnect($c);
					} else {
						$newmsgcount = $Count - $i + 1;
						//echo "Login OK: Inbox contains [" . $newmsgcount . "] messages<br />";
					}

					for (; $i < $Count; $i++) {
						if($k<=$max_messages_downloaded_x_session){
							$cur_msg_index=$i+1;
							$l = POP35::pList($c, $cur_msg_index);
							$last_uidl = $msglist["$cur_msg_index"];
@Dao-Cao
Copy link
Author

Dao-Cao commented Sep 11, 2017

$i = $j+1 ← This is a bug

@gloony
Copy link
Contributor

gloony commented Jun 7, 2018

I fix it on my Pull Request with some other stuff: #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants