1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
$body = "This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
qsdqsdq4564sd6qsdqsds@yahoo.com
SMTP error from remote mail server after end of data:
host mta6.am0.yahoodns.net [74.6.140.64]: 554 delivery error:
dd This user doesn't have a yahoo.com account (qsdqsdq4564sd6qsdqsds@yahoo.com) [0] - mta1196.mail.sk1.yahoo.com
------ This is a copy of the message, including all the headers. ------
Return-path:
Received: from localhost ([127.0.0.1] helo=domaine.fr)
by ns220280.ovh.net with esmtpa (Exim 4.77)
(envelope-from )
id 1S0W3O-0001Bv-MC
for qsdqsdq4564sd6qsdqsds@yahoo.com; Thu, 23 Feb 2012 11:37:38 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 23 Feb 2012 11:37:38 +0100
From: noreply@domaine.fr
To:
Subject: qsdqsdqsdqsd
Message-ID: <2239ada81c52e602ef9a1623f1fbbe8b@domaine.fr>
X-Sender: noreply@domaine.fr
User-Agent: Roundcube Webmail/0.7.1";
//if (preg_match ('/automatically\s[^\n\r]+delivery\s+(.*?)+failed:\n(\S+@\S+\w)/is',$body,$match)) {
if (preg_match ('/automatically\s[^\n\r]+delivery\s+(.*?)failed\S\r+/is',$body,$match)) {
echo "<br> 4 - " . $match[1];
} |
Partager