From 847ce3f06147edc314b420030b0d9239153c79a8 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 23 Jul 2015 15:47:10 +0200 Subject: bugfix --- imapsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'imapsync') diff --git a/imapsync b/imapsync index 705ad3d..5be570e 100755 --- a/imapsync +++ b/imapsync @@ -727,7 +727,7 @@ sub sync_messages($$) { # new mailbox if (!defined $$idx) { - my $subscribed = grep { $_ eq $mailbox} @SUBSCRIPTIONS ? 1 : 0; + my $subscribed = (grep { $_ eq $mailbox} @SUBSCRIPTIONS) ? 1 : 0; $STH_NEWMAILBOX->execute($mailbox, $subscribed); $STH_GET_INDEX->execute($mailbox); ($$idx) = $STH_GET_INDEX->fetchrow_array(); -- cgit v1.2.3