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:19:09 +0800
commit224c0cb2b98c925365d0dbaed8e7ef1d7f5cde32 (patch)
treee5aca96fee92740987b25e5b0ac40655eb761f2a
parentf740e7b38928182e5abc5f41940773c847d15e3c (diff)
downloadgsoc2013-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
-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 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);
poet2017-05-261-2/+2 * Update texinfo.tex from 2017-04-14.11 to 2017-05-14.14sunpoet2017-05-252-4/+4 * Update texinfo.tex from 2017-01-14.15 to 2017-04-14.11sunpoet2017-05-122-3/+4 * Update print/texinfo to 6.3sunpoet2017-05-083-14/+20 * Sort INFOsunpoet2017-04-161-1/+1 * Revert PORTDATA part of r438224sunpoet2017-04-112-1/+366 * Modernize portsunpoet2017-04-113-410/+45 * - Take maintainershipsunpoet2016-12-151-1/+1 * Stepping down as maintainer for some ports.johans2016-12-151-1/+1 * Revert texinfo upgrade, it was not testedantoine2016-09-153-18/+10 * Update to Texinfo 6.3johans2016-09-133-9/+18 * Remove a patch from devel/gmake so the port no longer depends ontijl2016-07-081-2/+2 * Update to texinfo 6.1, with data files from 25 Apriljohans2016-05-043-9/+15 * Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.mat2016-04-011-1/+1 * print/texinfo: document ncurses requirement (USES+=ncurses)marino2016-02-061-1/+1 * - Update texinfo.tex to latest versionjohans2015-11-082-9/+10 * Update texinfo.tex to latest versionjohans2015-10-142-9/+9 * Update to new script releasesjohans2015-09-202-9/+9 * - Update to texinfo 6.0johans2015-07-014-123/+38 * - Update texinfo.tex, htmlxref.cnf to latest releasejohans2015-03-282-10/+12 * Update texi2dvi to latest releasejohans2015-01-252-10/+9 * Fix build on headantoine2015-01-171-1/+1 * Unbreakantoine2014-12-231-3/+3 * Use DIST_SUBDIR for rolling distfilesjohans2014-12-232-8/+10 * Update texinfo.tex and texi2dvi to latest releasejohans2014-12-222-5/+5 * Cleanup plistantoine2014-11-131-38/+0 * Update new version of htmlxref.cnfjohans2014-08-282-3/+3 * Update texi2dvi to latest versionjohans2014-07-232-3/+3 * Remove indefinite articles and trailing periods from COMMENT, plusolgeni2014-07-171-1/+1 * Use gmake lite to avoid circular dependency when building on a system thatbapt2014-06-251-1/+1 * Update texinfo.tex and texi2dvi to latest versionjohans2014-06-172-5/+5 * Update to latest version of texinfo.texjohans2014-05-122-2/+2 * Swap MASTER_SITES, texinfo.tex has been rerolled (it is unversionned) onantoine2014-05-101-2/+2 * Update to the current versionjohans2014-05-032-9/+8 * Update to latest version of texinfo.texjohans2014-03-072-3/+3 * - Update to latest version of texinfo.texjohans2014-02-112-27/+15 * According to the Porter's Handbook (5.12.2.3.) default options must be added toehaupt2014-02-101-0/+2 * Update htmlxref.cnf to latest versionjohans2013-11-272-5/+4 * Add missing manpages to plistjohans2013-10-062-0/+13 * - Update texinfo to 5.2johans2013-10-063-41/+7 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Update texinfo.tex and texi2dvi to latest versionjohans2013-09-062-7/+7 * - Remove MAKE_JOBS_SAFE variableak2013-08-151-1/+0 * Update with new version of texinfo.texjohans2013-08-152-8/+6 * Update with new version of texinfo.texjohans2013-06-252-6/+4 * - Unbreak buildmiwi2013-06-061-0/+1 * Do not remove directories not actually created by the portbapt2013-05-271-2/+0 * - Add explicit perl dependency (build + run)johans2013-05-151-0/+2 * Update with new version of htmlxref.cnfjohans2013-04-302-4/+3 * - Convert USE_GETTEXT to USES (part 3)ak2013-04-251-1/+1 * - Correct plist to avoid conflicts with texi2htmljohans2013-03-242-1/+384 * Update texinfo to 5.1johans2013-03-143-6/+6 * Update texinfo additional files checksumsjohans2013-02-232-5/+5 * Update texinfo to 5.0johans2013-02-195-33/+61 * Update to latest htmlxref.cnf versionjohans2013-01-302-3/+3 * Update texinfo files to latest versionjohans2013-01-132-7/+7 * Correct checksum of texinfo.texjohans2012-12-161-2/+2 * - Update texinfo.tex and texi2dvi files to latest versionjohans2012-12-143-7/+7 * Convert to new options frameworkjohans2012-06-281-6/+6 * - Update texinfo to latest version (16 May)johans2012-05-212-5/+6 * Update to latest texinfo.tex and texi2dvi versions (6 April)johans2012-04-072-6/+5 * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-2/+2 * - Remove CONFLICT entry (conflicting files to be removed from teTeX-base)johans2011-06-132-27/+25 * - Update texinfo.tex and texi2dvi files to latest version (May 2011)johans2011-06-112-8/+20 * - Update to 4.13gahr2011-02-046-106/+102 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-0/+1 * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-211-2/+0 * Mark MAKE_JOBS_SAFE for SMP compilationlioux2009-03-251-0/+1 * Drop maintainership.lioux2008-11-301-1/+1 * - Cleanup gettext directories properlypav2008-06-201-0/+2 * - Update to 4.11gahr2008-06-196-71/+58 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * - Set --mandir and --infodir in CONFIGURE_ARGS if the configure scriptrafan2007-07-231-1/+0 * - Welcome X.org 7.2 \o/.flz2007-05-202-15/+1 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-21/+21 * Add SHA256 checksumlioux2005-11-111-0/+1 * Back out previous commit, which was a mistake.kris2005-10-291-0/+2 * o Try at a fix forlioux2005-10-182-1/+27 * o Add compatibility patch against FreeBSD's texinfo. Define newlioux2005-10-182-1/+91 * o Fix PLIST: do not remove directories which have made their waylioux2005-10-182-2/+1