Download & Extend

$headerinfo->Msgno requires to be converted to int

Project:Bounced Email
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

First of all, there is a mistake on line 115

  imap_delete($connection, $headerinfo>Msgno);

should read
  imap_delete($connection, $headerinfo->Msgno);

I found out on my configuration that $headerinfo->Msgno is a string(4), which causes the imap_delete($connection, $headerinfo>Msgno);
to fail and mark deleted the first mail all the time.
the correct code should be

imap_delete($connection, (int)$headerinfo->Msgno);
nobody click here