Skip to content

Commit

Permalink
Mail Bounce Tracking System : Making compatible with cron script.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9004 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Aniessh Sethh committed Jul 31, 2010
1 parent 0d637dc commit 19b359b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions admin/bounceprocessing.php
Expand Up @@ -3,10 +3,10 @@
include_once('database.php');
if($subaction=='bounceprocessing')
{

function bounceprocessing()
{global $connect,$scriptname;
if(empty($cron))
{
$surveyidoriginal = $_GET['sid'];
}
$settings=getSurveyInfo($surveyidoriginal);
if ($settings['bounceprocessing']=='N')
{
Expand Down Expand Up @@ -53,10 +53,7 @@ function bounceprocessing()
$lasthinfo=imap_headerinfo($mbox,$count);
$datelc=$lasthinfo->date;
$datelcu = strtotime($datelc);
echo $datelc;
echo "<br>";
echo $datelcu;
$gettimestamp = "select bouncetime from ".db_table_name("surveys")." where sid='$surveyidoriginal';";
$gettimestamp = "select bouncetime from ".db_table_name("surveys")." where sid='$surveyidoriginal';";
$datelcufiles = $connect->Execute($gettimestamp);
$datelcufile = substr($datelcufiles,11);
while($datelcu > $datelcufile)
Expand Down Expand Up @@ -89,7 +86,7 @@ function bounceprocessing()
$checktotal++;
}
@$count=imap_num_msg($mbox);
$lastcheckedinfo=imap_headerinfo($mbox,$count);
@$lastcheckedinfo=imap_headerinfo($mbox,$count);
$datelcfinal=$lastcheckedinfo->date;
$datelcfinalu = strtotime($datelcfinal);
$entertimestamp = "update ".db_table_name("surveys")." set bouncetime='$datelcfinalu' where sid='$surveyidoriginal';";
Expand Down Expand Up @@ -158,8 +155,7 @@ function bounceprocessing()

}
}
}
bounceprocessing();

}

?>
Expand Down

0 comments on commit 19b359b

Please sign in to comment.