Skip to content

Commit

Permalink
Dev : some fix to bounceprocessing : tested with gmail and localhost …
Browse files Browse the repository at this point in the history
…(pop&imap)

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9502 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Shnoulle committed Nov 18, 2010
1 parent 8b98ee4 commit 89dfa78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions admin/tokens.php
Expand Up @@ -234,8 +234,7 @@
// Bouceprocessing
if($subaction=='bounceprocessing')
{

if ($thissurvey['bounceprocessing']!='N' && bHasSurveyPermission($surveyid, 'tokens','update'))
if ($thissurvey['bounceprocessing']!='N' && ($thissurvey['bounceprocessing']=='G' && getGlobalSetting('bounceaccounttype')!='off') && bHasSurveyPermission($surveyid, 'tokens','update'))
{
$bouncetotal=0;
$checktotal=0;
Expand Down Expand Up @@ -280,6 +279,7 @@
$count=imap_num_msg($mbox);
$lasthinfo=imap_headerinfo($mbox,$count);
$datelcu = strtotime($lasthinfo->date);
$datelastbounce= $datelcu;
$lastbounce = $thissurvey['bouncetime'];
while($datelcu > $lastbounce)
{
Expand Down Expand Up @@ -312,7 +312,7 @@
$datelcu = strtotime($datelc);
$checktotal++;
}
$entertimestamp = "update ".db_table_name("surveys")." set bouncetime='$datelcu' where sid='$surveyid'";
$entertimestamp = "update ".db_table_name("surveys")." set bouncetime='$datelastbounce' where sid='$surveyid'";
$executetimestamp = $connect->Execute($entertimestamp);
if($bouncetotal>0)
{
Expand Down

0 comments on commit 89dfa78

Please sign in to comment.