Here is the debug output for the script without the explicit setting
$pop3->must_update = 1;
After the script was run, the message was still not deleted.
Once I explicitly set the class variable I re-ran the script. This time the message was deleted, as expected.
-Tony
Output:
----------------------------
Connecting to mail.lightning-mortgage.com ...
S +OK <
[email protected]>
C USER
[email protected]
S +OK
C PASS pr
S +OK
C STAT
S +OK 1 3227
C LIST
S +OK
S 1 3227
S .
C RETR 1
S +OK
S Return-Path: <>
S Delivered-To:
[email protected]
S Received: (qmail 45137 invoked from network); 6 Jan 2006 20:01:04 -0000
S Received: from unknown (HELO smtp101.sbc.mail.mud.yahoo.com) (68.142.198.200)
S by host373.ipowerweb.com with SMTP; 6 Jan 2006 20:01:04 -0000
S Received: (qmail 35331 invoked for bounce); 6 Jan 2006 19:59:08 -0000
S DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
S s=s1024; d=yahoo.com;
S h=Date:From:To:Subject;
S b=zpCge92ytgTf4TCgWCbSmXm+vIWN7fvLQ7Z8smIjklWCipsjGgjCq27SEomeAQkbqVsE3D47jXpNDAb39U/nQfEp/dLO4NgH09bN2X4w7Fdr3F8Q7e+U32Q8nSmiX63QpP/jq1x0JJsaX4T3SUVdkcGkuUpeGLGgft+Z3JzwryM= ;
S Date: 6 Jan 2006 19:59:08 -0000
S From:
[email protected]
S To:
[email protected]
S Subject: failure notice
S
S Hi. This is the qmail-send program at yahoo.com.
S I'm afraid I wasn't able to deliver your message to the following addresses.
S This is a permanent error; I've given up. Sorry it didn't work out.
S
S <
[email protected]>:
S 67.28.113.19 failed after I sent the message.
S Remote host said: 554 delivery error: dd This user doesn't have a yahoo.com account (
[email protected]) [0] - mta220.mail.re2.yahoo.com
S
S --- Below this line is a copy of the message.
S
S Return-Path: <
[email protected]>
S Received: (qmail 35315 invoked from network); 6 Jan 2006 19:59:08 -0000
S Received: from unknown (HELO lightning-mortgage.com) (
[email protected]@72.22.69.58 with login)
S by smtp101.sbc.mail.mud.yahoo.com with SMTP; 6 Jan 2006 19:59:07 -0000
S Date: Fri, 6 Jan 2006 12:01:02 -0800
S Return-Path:
[email protected]
S To: Friend <
[email protected]>
S From: Anthony Ferlazzo <
[email protected]>
S Reply-to:
[email protected]
S Subject: Thanks for Signing Up, Friend
S Message-ID: <
[email protected]>
S X-Priority: 3
S X-Mailer: PHPMailer [version 1.73]
S MIME-Version: 1.0
S Content-Transfer-Encoding: 8bit
S Content-Type: text/plain; charset="iso-8859-1"
S
S Hi Friend,
S
S Looking forward to hearing from you,
S
S -Anthony
S .
C DELE 1
S +OK
Closing connection.