+2001-11-07 [alfons] 0.6.5.claws2
+
+ * src/procmsg.c
+ * src/utils.[ch]
+ only attract by subject if a subject line starts with a "Re: "
+ * src/syldap.c
+ remove warning
+
2001-11-07 [paul] 0.6.5claws1
* sync with sylpheed 0.6.5. release
MICRO_VERSION=5
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws1
+EXTRA_VERSION=claws2
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl
if (msginfo->inreplyto)
parent = g_hash_table_lookup(msgid_table, msginfo->inreplyto);
- if (parent == NULL)
+ if (parent == NULL && !subject_is_reply(msginfo->subject))
parent = subject_table_lookup(subject_table, msginfo->subject);
-
if (parent && parent != node) {
g_node_unlink(node);
/* TODO: really necessary to call gdk_threads_XXX()??? gtk_idle_add()
* should do this - could someone check the GTK sources please? */
gdk_threads_enter();
- ldapServer->idleId = gtk_idle_add(syldap_display_search_results, ldapServer);
+ ldapServer->idleId = gtk_idle_add((GtkFunction)syldap_display_search_results, ldapServer);
gdk_threads_leave();
}
else
g_hash_table_remove(subject_table, subject);
}
+
+gboolean subject_is_reply(const gchar *subject)
+{
+ /* XXX: just simply here so someone can handle really
+ * advanced Re: detection like "Re[4]", "ANTW:" or
+ * Re: Re: Re: Re: Re: Re: Re: Re:" stuff. */
+ if (subject == NULL) return FALSE;
+ else return 0 == g_strcasecmp(subject, "Re: ");
+}
void subject_table_insert(GHashTable *subject_table, gchar * subject,
void * data);
void subject_table_remove(GHashTable *subject_table, gchar * subject);
+gboolean subject_is_reply(const gchar *subject);
+
#endif /* __UTILS_H__ */