* src/procmsg.c
restrict threading by subject by checking thread for
age (prefs_common.thread_by_subject_max_age)
+2003-06-19 [alfons] 0.9.0claws48
+
+ * src/prefs_common.[ch]
+ * src/procmsg.c
+ restrict threading by subject by checking thread for
+ age (prefs_common.thread_by_subject_max_age)
+
2003-06-18 [christoph] 0.9.0claws47
* src/imap.c
2003-06-18 [christoph] 0.9.0claws47
* src/imap.c
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
NULL, NULL, NULL},
{"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
NULL, NULL, NULL},
NULL, NULL, NULL},
{"bold_unread", "TRUE", &prefs_common.bold_unread, P_BOOL,
NULL, NULL, NULL},
+ {"thread_by_subject_max_age", "10", &prefs_common.thread_by_subject_max_age,
+ P_INT, NULL, NULL, NULL },
{"enable_thread", "TRUE", &prefs_common.enable_thread, P_BOOL,
NULL, NULL, NULL},
{"enable_thread", "TRUE", &prefs_common.enable_thread, P_BOOL,
NULL, NULL, NULL},
gboolean bold_unread;
gboolean enable_thread;
gboolean thread_by_subject;
gboolean bold_unread;
gboolean enable_thread;
gboolean thread_by_subject;
+ gint thread_by_subject_max_age; /*!< Max. age of a thread which was threaded
+ * by subject (days) */
ToolbarStyle toolbar_style;
gboolean show_statusbar;
ToolbarStyle toolbar_style;
gboolean show_statusbar;
parent = NULL;
if (parent == node)
parent = NULL;
parent = NULL;
if (parent == node)
parent = NULL;
+ /* check if the message should be added to this thread */
+ if (parent && abs(((MsgInfo *)parent->data)->date_t - msginfo->date_t) >
+ prefs_common.thread_by_subject_max_age * 3600 * 24)
+ parent = NULL;