From 224c0cb2b98c925365d0dbaed8e7ef1d7f5cde32 Mon Sep 17 00:00:00 2001 From: Thomas Andersen Date: Thu, 22 Oct 2009 00:19:09 -0400 Subject: Bug 599245 - Use bitwise AND instead of logical AND for checking flags --- plugins/pst-import/pst-importer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c index a720236c5a..f89b2da5ad 100644 --- a/plugins/pst-import/pst-importer.c +++ b/plugins/pst-import/pst-importer.c @@ -910,13 +910,13 @@ pst_process_email (PstImporter *m, pst_item *item) info = camel_message_info_new (NULL); /* Read message flags (see comments in libpst.c */ - if (item->flags && 0x01) + if (item->flags & 0x01) camel_message_info_set_flags (info, CAMEL_MESSAGE_SEEN, ~0); if (item->email->importance == 2) camel_message_info_set_flags (info, CAMEL_MESSAGE_FLAGGED, ~0); - if (item->flags && 0x08) + if (item->flags & 0x08) camel_message_info_set_flags (info, CAMEL_MESSAGE_DRAFT, ~0); camel_folder_append_message (m->folder, msg, info, NULL, &m->ex); -- cgit