diff options
author | Thomas Andersen <phomes@gmail.com> | 2009-10-22 12:19:09 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-10-22 12:19:09 +0800 |
commit | 224c0cb2b98c925365d0dbaed8e7ef1d7f5cde32 (patch) | |
tree | e5aca96fee92740987b25e5b0ac40655eb761f2a /plugins/pst-import/pst-importer.c | |
parent | f740e7b38928182e5abc5f41940773c847d15e3c (diff) | |
download | gsoc2013-evolution-224c0cb2b98c925365d0dbaed8e7ef1d7f5cde32.tar.gz gsoc2013-evolution-224c0cb2b98c925365d0dbaed8e7ef1d7f5cde32.tar.zst gsoc2013-evolution-224c0cb2b98c925365d0dbaed8e7ef1d7f5cde32.zip |
Bug 599245 - Use bitwise AND instead of logical AND for checking flags
Diffstat (limited to 'plugins/pst-import/pst-importer.c')
-rw-r--r-- | plugins/pst-import/pst-importer.c | 4 |
1 files 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); |