Skip to content

Commit

Permalink
Removed debugging statements from imap
Browse files Browse the repository at this point in the history
  • Loading branch information
hplato authored Sep 30, 2024
1 parent da69757 commit b24331c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/imap_utils.pl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sub main::get_imap {
$ssl = $parms{ssl} if ( defined $parms{ssl} );
$ssl = 1 if ( lc $service eq "gmail" );
$ssl = 1 if ( lc $service eq "ssl" );
print "db ssl=$ssl\n";
#print "db ssl=$ssl\n";
my $size = 0;
$size = $main::config_parms{"net_mail_scan_size"}
if ( defined $main::config_parms{"net_mail_scan_size"} );
Expand Down Expand Up @@ -434,17 +434,17 @@ sub _check_age {
$year = $year - 1900;
$epochtime = mktime( $sec, $min, $hour, $day, $monnum, $year );

print "db: imap_utils.pl: time=$time, epochtime=$epochtime";
#print "db: imap_utils.pl: time=$time, epochtime=$epochtime";

$epochtime = $epochtime - 3600 if ( $dst and !$dst_disable );
$epochtime = $epochtime + $offset;

my $diff = ($time - $epochtime);
print ",epochtime after offset=$epochtime, diff=$diff\n";
#print ",epochtime after offset=$epochtime, diff=$diff\n";

my $return = ( ( $time - $epochtime ) <= ( $age * 60 ) );

print "db: imap_utils.pl: diff=$diff, return=$return\n";
#print "db: imap_utils.pl: diff=$diff, return=$return\n";
return $return;
}

Expand Down

0 comments on commit b24331c

Please sign in to comment.