postfixadmin/postfixadmin-2.93-fetchmail-mariadb-5.5.patch

12 lines
491 B
Diff

--- postfixadmin-2.93.orig/ADDITIONS/fetchmail.pl 2015-04-04 16:26:21.000000000 +0200
+++ postfixadmin-2.93/ADDITIONS/fetchmail.pl 2016-04-20 01:01:48.963998884 +0200
@@ -83,7 +83,7 @@
if($db_type eq "Pg") {
$sql_cond = "active = 1 AND date_part('epoch',now())-date_part('epoch',date)";
} elsif($db_type eq "mysql") {
- $sql_cond = "active = 't' AND unix_timestamp(now())-unix_timestamp(date)";
+ $sql_cond = "active = '1' AND unix_timestamp(now())-unix_timestamp(date)";
}
$sql = "