aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Andersen <phomes@gmail.com>2009-10-22 12:19:09 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-22 12:20:01 +0800
commit0380306f0384a837232d17b286dc25bc568cbe52 (patch)
treee831aa8ae66ad68d60f716e0c838c70444060c0c
parent55bc99f7f239efd99930f4fe3e91a6b61043102f (diff)
downloadgsoc2013-evolution-0380306f0384a837232d17b286dc25bc568cbe52.tar
gsoc2013-evolution-0380306f0384a837232d17b286dc25bc568cbe52.tar.gz
gsoc2013-evolution-0380306f0384a837232d17b286dc25bc568cbe52.tar.bz2
gsoc2013-evolution-0380306f0384a837232d17b286dc25bc568cbe52.tar.lz
gsoc2013-evolution-0380306f0384a837232d17b286dc25bc568cbe52.tar.xz
gsoc2013-evolution-0380306f0384a837232d17b286dc25bc568cbe52.tar.zst
gsoc2013-evolution-0380306f0384a837232d17b286dc25bc568cbe52.zip
Bug 599245 - Use bitwise AND instead of logical AND for checking flags
-rw-r--r--plugins/pst-import/pst-importer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c
index ddc7e7662f..3530b7c7c3 100644
--- a/plugins/pst-import/pst-importer.c
+++ b/plugins/pst-import/pst-importer.c
@@ -908,13 +908,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);