+2001-11-06 [hoa] 0.6.4claws30
+
+ * src/procmsg.c
+ * src/summaryview.c
+ * src/utils.c
+ * src/utils.h
+ threading by subject - empty subject are ignored
+
2001-11-06 [christoph] 0.6.4claws29
* src/socket.c
MICRO_VERSION=4
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws29
+EXTRA_VERSION=claws30
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl
return fp;
}
-static GNode * subject_table_lookup(GHashTable * subject_table,
- gchar * subject)
-{
- if (subject == NULL)
- subject = "";
-
- if (g_strncasecmp(subject, "Re: ", 4) == 0)
- return g_hash_table_lookup(subject_table, subject + 4);
- else
- return g_hash_table_lookup(subject_table, subject);
-}
-
-static void subject_table_insert(GHashTable * subject_table, gchar * subject,
- GNode * node)
-{
- if (subject == NULL)
- subject = "";
-
- if (g_strncasecmp(subject, "Re: ", 4) == 0)
- g_hash_table_insert(subject_table, subject + 4, node);
- else
- g_hash_table_insert(subject_table, subject, node);
-}
-
/* return the reversed thread tree */
GNode *procmsg_get_thread_tree(GSList *mlist)
{
return TRUE;
}
-static GtkCTreeNode * subject_table_lookup(GHashTable *subject_table,
- gchar * subject)
-{
- if (subject == NULL)
- subject = "";
-
- if (g_strncasecmp(subject, "Re: ", 4) == 0)
- return g_hash_table_lookup(subject_table, subject + 4);
- else
- return g_hash_table_lookup(subject_table, subject);
-}
-
-static void subject_table_insert(GHashTable *subject_table, gchar * subject,
- GtkCTreeNode * node)
-{
- if (subject == NULL)
- subject = "";
-
- if (g_strncasecmp(subject, "Re: ", 4) == 0)
- g_hash_table_insert(subject_table, subject + 4, node);
- else
- g_hash_table_insert(subject_table, subject, node);
-}
-
-static void subject_table_remove(GHashTable *subject_table, gchar * subject)
-{
- if (subject == NULL)
- subject = "";
-
- if (g_strncasecmp(subject, "Re: ", 4) == 0)
- g_hash_table_remove(subject_table, subject + 4);
- else
- g_hash_table_remove(subject_table, subject);
-}
-
static void summary_set_ctree_from_list(SummaryView *summaryview,
GSList *mlist)
{
fflush(log_fp);
}
}
+
+
+void * subject_table_lookup(GHashTable *subject_table, gchar * subject)
+{
+ if (subject == NULL)
+ subject = "";
+
+ if (g_strncasecmp(subject, "Re: ", 4) == 0)
+ return g_hash_table_lookup(subject_table, subject + 4);
+ else
+ return g_hash_table_lookup(subject_table, subject);
+}
+
+void subject_table_insert(GHashTable *subject_table, gchar * subject,
+ void * data)
+{
+ if (subject == NULL)
+ return;
+ if (* subject == 0)
+ return;
+ if (g_strcasecmp(subject, "Re:") == 0)
+ return;
+ if (g_strcasecmp(subject, "Re: ") == 0)
+ return;
+
+ if (g_strncasecmp(subject, "Re: ", 4) == 0)
+ g_hash_table_insert(subject_table, subject + 4, data);
+ else
+ g_hash_table_insert(subject_table, subject, data);
+}
+
+void subject_table_remove(GHashTable *subject_table, gchar * subject)
+{
+ if (subject == NULL)
+ return;
+
+ if (g_strncasecmp(subject, "Re: ", 4) == 0)
+ g_hash_table_remove(subject_table, subject + 4);
+ else
+ g_hash_table_remove(subject_table, subject);
+}
void log_warning (const gchar *format, ...) G_GNUC_PRINTF(1, 2);
void log_error (const gchar *format, ...) G_GNUC_PRINTF(1, 2);
+/* subject threading */
+void * subject_table_lookup(GHashTable *subject_table, gchar * subject)
+void subject_table_insert(GHashTable *subject_table, gchar * subject,
+ void * data);
+void subject_table_remove(GHashTable *subject_table, gchar * subject);
+
#endif /* __UTILS_H__ */