aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-20 02:15:37 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-20 02:15:37 +0800
commitf86da998ff2ef6ee67a7825ddd73c0298a0956ae (patch)
tree4f36cfe5cec112315c4d8483f17012e6d622d262 /camel
parenta273803fab7a94128cc6cd8fc780827c2b5c1364 (diff)
downloadgsoc2013-evolution-f86da998ff2ef6ee67a7825ddd73c0298a0956ae.tar.gz
gsoc2013-evolution-f86da998ff2ef6ee67a7825ddd73c0298a0956ae.tar.zst
gsoc2013-evolution-f86da998ff2ef6ee67a7825ddd73c0298a0956ae.zip
If the folder's message count is not the same as the number of summaries,
2000-07-19 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c (imap_get_summary): If the folder's message count is not the same as the number of summaries, free the old summary and create a new summary. svn path=/trunk/; revision=4223
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/providers/imap/camel-imap-folder.c29
2 files changed, 26 insertions, 9 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index bf4c3b7374..8429605a23 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2000-07-19 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * providers/imap/camel-imap-folder.c (imap_get_summary): If the folder's
+ message count is not the same as the number of summaries, free the old
+ summary and create a new summary.
+
2000-07-18 Jeffrey Stedfast <fejj@helixcode.com>
* providers/imap/camel-imap-folder.c (camel_imap_folder_class_init): Added
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c
index f5235c5a30..bf0f1ff03b 100644
--- a/camel/providers/imap/camel-imap-folder.c
+++ b/camel/providers/imap/camel-imap-folder.c
@@ -189,16 +189,12 @@ camel_imap_folder_new (CamelStore *parent, char *folder_name, CamelException *ex
return folder;
}
-static void
-imap_finalize (GtkObject *object)
+static void
+imap_summary_free (CamelImapFolder *imap_folder)
{
- /* TODO: do we need to do more here? */
- CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (object);
CamelMessageInfo *info;
gint i, max;
- GTK_OBJECT_CLASS (parent_class)->finalize (object);
-
g_return_if_fail (imap_folder->summary != NULL);
max = imap_folder->summary->len;
@@ -219,6 +215,15 @@ imap_finalize (GtkObject *object)
imap_folder->summary = NULL;
}
+static void
+imap_finalize (GtkObject *object)
+{
+ /* TODO: do we need to do more here? */
+ CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (object);
+
+ imap_summary_free (imap_folder);
+}
+
static void
imap_init (CamelFolder *folder, CamelStore *parent_store, CamelFolder *parent_folder,
const gchar *name, gchar *separator, gboolean path_begins_with_sep, CamelException *ex)
@@ -1059,7 +1064,7 @@ static char *header_fields[] = { "subject", "from", "to", "cc", "date",
a2 OK FETCH completed
*/
-GPtrArray *
+static GPtrArray *
imap_get_summary (CamelFolder *folder, CamelException *ex)
{
CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder);
@@ -1069,10 +1074,16 @@ imap_get_summary (CamelFolder *folder, CamelException *ex)
const char *received;
struct _header_raw *h, *tail = NULL;
- if (imap_folder->summary)
- return imap_folder->summary;
+ /*if (imap_folder->summary)
+ return imap_folder->summary;*/
num = imap_get_message_count (folder, ex);
+
+ if (imap_folder->summary && imap_folder->summary->len == num)
+ return imap_folder->summary;
+
+ /* clean up any previous summary data */
+ imap_summary_free (imap_folder);
summary = g_ptr_array_new ();
href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/japanese?h=mate-1.18&id=84682cd80332d7572dab15b552b442065b116552'>- Trim Makefile headertota2013-01-291-5/+1 * - Reset maintainership due to MAINTAINER email bouncezi2013-01-261-1/+1 * Add license info.nobutaka2013-01-261-13/+24 * Bump PORTREVISION after DESKTOP_ENTRIES updatemakc2013-01-231-1/+1 * Fix SIGSEGV when pasting multibyte characters.hrs2013-01-203-11/+50 * Add UTF-8 support.hrs2013-01-203-11/+14 * - Use UTF-8 when LANG=ja.JP.UTF-8.hrs2013-01-202-2/+43 * - Add UTF-8 support[*].hrs2013-01-207-45/+37 * Remove unused function from pkg-install, and dequote RESTRICTEDcrees2013-01-192-19/+1 * - trim historical header, add LICENSES, convert CHARSET to optionsNG and dropjgh2013-01-162-15/+41 * - add created by to headerjgh2013-01-151-2/+9 * - add created by to headerjgh2013-01-151-3/+10 * Add licensing information.rakuco2013-01-121-0/+3 * Remove PKGNAMEPREFIX from textproc/py-ackcrees2013-01-081-1/+1 * - Update DESKTOP_ENTRIES:makc2013-01-071-9/+5 * - Update to 20121228.kuriyama2013-01-064-10/+10 * Register mutual conflictcrees2013-01-031-4/+3 * - Deprecate QT3, KDE3 and unmaintained ports depending on them. QT 3.3.8beat2012-12-301-0/+3 * - Set default perl version for ports which currently usingaz2012-12-162-2/+1 * fixed build error related to OPENSSL_LDFLAGSdaichi2012-12-141-3/+4 * Update cyrus-sasl2 to 2.1.26.ume2012-12-101-2/+2 * Decommissioning java 1.5 (EOLed since October 2009):bapt2012-12-101-6/+2 * - Update to 201212swills2012-12-103-14/+10 * 2012-11-26 emulators/gcube: No more public distfilesbapt2012-11-2812-1807/+0 * - Update to 3.0.7tota2012-11-282-3/+3 * 2012-11-27 devel/p5-SPOPS: Depend on the expired p5-Class-Fieldsbapt2012-11-286-98/+0 * 2012-11-27 graphics/morpheus: Depends on the expired gtkglareabapt2012-11-2824-1225/+0 * - Update to 0.63 [1]wen2012-11-252-8/+4 * - update japanese bugzilla templatesohauer2012-11-236-12/+12 * Update to 20121109.hrs2012-11-182-5/+6 * Update to 445.hrs2012-11-182-10/+6 * Update to 20121030.hrs2012-11-182-28/+22 * Update to 20121030.hrs2012-11-182-27/+22 * Update to 00201.hrs2012-11-182-9/+6 * - Upgrade to 0.10.kuriyama2012-11-112-8/+3 * - Update to 20121031.kuriyama2012-11-064-10/+10 * Fix buildaz2012-11-061-1/+1 * - Upgrade to 0.30.kuriyama2012-10-272-8/+3 * - Update to 3.5.7.jkim2012-10-272-9/+4 * Deprecate a bunch of ports that are either abandonware and/or for which no morebapt2012-10-262-10/+8 * Deprecate a bunch of ports that are either abandonware and/or for which no morebapt2012-10-263-15/+12 * 2012-10-20 lang/ironpython: No more public distfilesbapt2012-10-2618-296/+0 * Fix run dependency linebapt2012-10-201-6/+2 * Fix dependency linesbapt2012-10-201-6/+3 * - Upgrade to 0.29.kuriyama2012-10-202-3/+3 * - fix breakageaz2012-10-161-3/+3 * - Update 3.4.2swills2012-10-142-10/+8 * - Unbreakpawel2012-10-133-25/+58 * - cleanup commentsdinoex2012-10-131-4/+0 * - Update to 0.994tota2012-10-133-9/+11 * - Update to 0.994tota2012-10-132-5/+5 * - Update to 0.994tota2012-10-133-9/+10 * - Update to 0.994tota2012-10-133-5/+5 * - Update to 3.0.6tota2012-10-112-8/+4 * - Remove SITE_PERL from *_DEPENDS (final part)az2012-10-117-19/+7 * Force numerous ports that fail to build with clang over to instead alwayslinimon2012-10-106-0/+6 * - Chase www/smarty -> www/smarty2 renameglarkin2012-09-271-1/+2 * Fix the port build: I forgot to test after a 'rmconfig'eadler2012-09-261-1/+2 * convert to optionsNGeadler2012-09-261-14/+14 * build issue fixeddaichi2012-09-261-2/+2 * - Fix typo in pkg-descr [1]culot2012-09-251-2/+7 * - Revert committabthorpe2012-09-251-2/+6 * - Reassign to the heap due to mail bouncestabthorpe2012-09-251-6/+2 * Deprecated a bunch a ports with no more public distfiles (thanks ehaupt'sbapt2012-09-214-0/+12 * - Update to 0.1.1wen2012-09-192-3/+3 * improved paralell build handlingdaichi2012-09-181-5/+11 * fixed a FreeBSD 9.x build issuedaichi2012-09-174-7/+14 * - Update Calligra Suite to 2.5.2.avilla2012-09-171-2/+2 * - use OPTIONS_DEFINE in master portdinoex2012-09-171-2/+0 * Gjiten is a Japanese dictionary program for GNOME.culot2012-09-165-0/+121 * It requires some additional ruby libs build for ruby19.ume2012-09-152-2/+14 * - disconnect japanese/postgresqlXX-man from the buildrm2012-09-151-4/+0 * Remove unmaintained ports, that installs Japanese PostgreSQL man-pages forrm2012-09-1519-781/+3 * - chase japanese/eb update, that I forgot in previous commitrm2012-09-142-9/+3 * - update japanese/eb to 4.4.3rm2012-09-1410-103/+57 * - update to 3.2.1b that fix rendering of this font on FreeBSDrm2012-09-143-12/+13 * fixed distinfodaichi2012-09-101-2/+2 * - Update to 4.2.3tota2012-09-102-3/+3 * - Update to 4.0.8tota2012-09-102-10/+3 * - Update to 3.6.11tota2012-09-102-10/+3 * update distinfodaichi2012-09-091-4/+4 * Updated mozc relative ports to 1.6.1187.102daichi2012-09-0721-137/+81 * Chase Emacs updatesashish2012-09-055-5/+5 * - Convert to OptionsNGswills2012-09-051-3/+6 * - move to bugzilla@ohauer2012-09-021-1/+1 * - update bugzilla bugzilla3 and bugzilla42ohauer2012-09-023-17/+16 * - Update Calligra to 2.5.1.avilla2012-09-012-7/+2 * - Update to 20120831.kuriyama2012-09-014-20/+10 * - Update to 1.0.0scheidell2012-08-292-3/+3 * - Update to 2.8.5scheidell2012-08-283-29/+5 * The KDE/FreeBSD team is pleased to announce version 2.5 of Calligra,avilla2012-08-262-11/+3 * - Update to 3.5.6.jkim2012-08-241-4/+4 * - Upgrade to 0.07.kuriyama2012-08-232-3/+3 * - Remove net/asterisk16, net/asterisk16-addons, japanese/asterisk16-soundsflo2012-08-226-324/+0 * - Mark BROKEN: unable to resolve dependenciesbeat2012-08-221-0/+2 * - Reassign nork@ ports to the heaptabthorpe2012-08-1616-16/+16 * Re-inrtoduce GNOME SUICA Viewer.ume2012-08-134-0/+64 * Update to 0.9.0 and unmark BROKEN.ume2012-08-132-8/+13 * - Add PORTSCOUT to restrict Japanese language versiontota2012-08-111-0/+2 * - Update to 3.0.5tota2012-08-112-4/+4 * Use more apropriate check for Emacs version.ume2012-08-111-1/+1 * It doesn't build with Emacs 24.ume2012-08-111-2/+2 * - Update to 4.2.2tota2012-08-083-12/+15 * - Update to 4.0.7tota2012-08-083-6/+15 * - Update to 3.6.10tota2012-08-083-9/+17 * - Eliminate perl 5.16 defined() array error.scheidell2012-08-081-6/+20 * - Fix pointyhat (plist), ubreakscheidell2012-08-072-4/+7 * Move the rc.d scripts of the form *.sh.in to *.indougb2012-08-0613-7/+7 * Fix compilation issue on emacs24.hrs2012-08-042-1/+9 * - Fix conflictsscheidell2012-08-031-0/+2 * - Bump PORTREVISION to chase Emacs port updatesashish2012-08-025-5/+5 * Fix typos in COMMENTcs2012-07-2918-18/+18 * Fix typos in COMMENTcs2012-07-286-6/+6 * fcitx-anthy provides Anthy, the most popular Japanese input methodscheidell2012-07-275-0/+65 * new devel/pkgconf added to replace devel/pkg-config. new version of pkg-configbapt2012-07-261-2/+1 * fixed mozc-el build faildaichi2012-07-262-10/+10 * - Copy japanese/bugzilla to japanese/bugzilla42 according totota2012-07-266-0/+377 * Fix typos in COMMENTcs2012-07-251-1/+1 * For ports maintained by ports@ where pkgconfig is one of the USE_GNOME depsdougb2012-07-231-1/+3