aboutsummaryrefslogtreecommitdiffstats
path: root/imapsync
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-07-23 15:47:10 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-07-23 17:15:38 +0200
commit847ce3f06147edc314b420030b0d9239153c79a8 (patch)
treecb58c0b8eb38796d73521160a11467cfe4afc4ba /imapsync
parent71edd6346a069740661789a8ebdb6f34fda7a966 (diff)
bugfix
Diffstat (limited to 'imapsync')
-rwxr-xr-ximapsync2
1 files changed, 1 insertions, 1 deletions
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();