This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIME-Version: 1.0 | |
Received: by 10.220.191.194 with HTTP; Wed, 11 May 2011 12:27:12 -0700 (PDT) | |
Date: Wed, 11 May 2011 13:27:12 -0600 | |
Delivered-To: [email protected] | |
Message-ID: <[email protected]> | |
Subject: Test | |
From: Bill Jncjkq <[email protected]> | |
To: [email protected] | |
Content-Type: multipart/mixed; boundary=bcaec54eecc63acce904a3050f79 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php | |
<?php | |
//debug | |
#ini_set ("display_errors", "1"); | |
#error_reporting(E_ALL); | |
//include email parser | |
require_once('/var/www/rfc822_addresses.php'); | |
require_once('/var/www/mime_parser.php'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mmm d, yyyy hh:mm:ss AM/PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$node_type = 'lease'; | |
//fetch the nodes we want to delete | |
$result = db_query("SELECT nid FROM {node} WHERE type='%s'",$node_type); | |
while ($row = db_fetch_object($result)){ | |
node_delete($row->nid); | |
$deleted_count+=1; | |
} | |
//simple debug message so we can see what had been deleted. | |
drupal_set_message("$deleted_count nodes have been deleted"); |
NewerOlder