aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-08-28 06:09:41 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-08-28 06:09:41 +0800
commit3814bb179fb3e0f3f0e862b2390e317bff0c80bb (patch)
tree558ada00956b787f7b8be0a9ea65a061703ae9c7 /mail
parent9945af011ee1e272440e0f61b74b910d0bd92045 (diff)
downloadgsoc2013-evolution-3814bb179fb3e0f3f0e862b2390e317bff0c80bb.tar.gz
gsoc2013-evolution-3814bb179fb3e0f3f0e862b2390e317bff0c80bb.tar.zst
gsoc2013-evolution-3814bb179fb3e0f3f0e862b2390e317bff0c80bb.zip
Pass mail_config_get_thread_subject() as the third argument to
2002-08-27 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (regen_list_regen): Pass mail_config_get_thread_subject() as the third argument to camel_folder_thread_messages_new(). * mail-config.c (config_read): Read in the thread_by_subject config option. (mail_config_write_on_exit): Save the thread_by_subject config option. (mail_config_get_thread_subject): New function to get the thread_subject value. (mail_config_set_thread_subject): New function to set the thread_subject value. svn path=/trunk/; revision=17881
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog15
-rw-r--r--mail/mail-config.c79
-rw-r--r--mail/mail-config.h3
-rw-r--r--mail/message-list.c3
4 files changed, 70 insertions, 30 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 7088dbcb68..74a633aa00 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,18 @@
+2002-08-27 Jeffrey Stedfast <fejj@ximian.com>
+
+ * message-list.c (regen_list_regen): Pass
+ mail_config_get_thread_subject() as the third argument to
+ camel_folder_thread_messages_new().
+
+ * mail-config.c (config_read): Read in the thread_by_subject
+ config option.
+ (mail_config_write_on_exit): Save the thread_by_subject config
+ option.
+ (mail_config_get_thread_subject): New function to get the
+ thread_subject value.
+ (mail_config_set_thread_subject): New function to set the
+ thread_subject value.
+
2002-08-27 Radek Doulik <rodo@ximian.com>
* mail-signature-editor.c: removed tip frame
diff --git a/mail/mail-config.c b/mail/mail-config.c
index ad09ec03c8..b9aed3b1f4 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -27,6 +27,7 @@
#endif
/* this group of headers is for pgp detection */
+#include <stdlib.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/time.h>
@@ -101,6 +102,8 @@ typedef struct {
int seen_timeout;
gboolean empty_trash_on_exit;
+ gboolean thread_subject;
+
GSList *accounts;
int default_account;
@@ -517,32 +520,31 @@ config_write_imported_signature (gchar *filename, gint i, gboolean html)
static void
config_import_old_signatures ()
{
- gint num;
-
+ int num;
+
num = bonobo_config_get_long_with_default (config->db, "/Mail/Signatures/num", -1, NULL);
-
+
if (num == -1) {
/* there are no signatures defined
* look for old config to create new ones from old ones
*/
-
GHashTable *cache;
- gint i, accounts;
-
+ int i, accounts;
+
cache = g_hash_table_new (g_str_hash, g_str_equal);
accounts = bonobo_config_get_long_with_default (config->db, "/Mail/Accounts/num", 0, NULL);
num = 0;
for (i = 0; i < accounts; i ++) {
- gchar *path, *val;
-
+ char *path, *val;
+
/* read text signature file */
path = g_strdup_printf ("/Mail/Accounts/identity_signature_%d", i);
val = bonobo_config_get_string (config->db, path, NULL);
g_free (path);
if (val && *val) {
- gint id;
gpointer orig_key, node_val;
-
+ int id;
+
if (g_hash_table_lookup_extended (cache, val, &orig_key, &node_val)) {
id = GPOINTER_TO_INT (node_val);
} else {
@@ -551,23 +553,23 @@ config_import_old_signatures ()
id = num;
num ++;
}
-
+
/* set new text signature to this identity */
path = g_strdup_printf ("/Mail/Accounts/identity_signature_text_%d", i);
bonobo_config_set_long (config->db, path, id, NULL);
g_free (path);
} else
g_free (val);
-
+
path = g_strdup_printf ("/Mail/Accounts/identity_has_html_signature_%d", i);
if (bonobo_config_get_boolean_with_default (config->db, path, FALSE, NULL)) {
g_free (path);
path = g_strdup_printf ("/Mail/Accounts/identity_html_signature_%d", i);
val = bonobo_config_get_string (config->db, path, NULL);
if (val && *val) {
- gint id;
gpointer orig_key, node_val;
-
+ int id;
+
if (g_hash_table_lookup_extended (cache, val, &orig_key, &node_val)) {
id = GPOINTER_TO_INT (node_val);
} else {
@@ -576,7 +578,7 @@ config_import_old_signatures ()
id = num;
num ++;
}
-
+
/* set new html signature to this identity */
g_free (path);
path = g_strdup_printf ("/Mail/Accounts/identity_signature_html_%d", i);
@@ -597,7 +599,7 @@ locale_supports_12_hour_format(void)
{
char s[16];
time_t t = 0;
-
+
strftime(s, sizeof s, "%p", gmtime (&t));
return s[0] != '\0';
}
@@ -609,7 +611,7 @@ config_read (void)
char *path, *val, *p;
mail_config_clear ();
-
+
config_import_old_signatures ();
config_read_signatures ();
@@ -746,12 +748,12 @@ config_read (void)
path = g_strdup_printf ("/Mail/Accounts/identity_def_signature_%d", i);
id->def_signature = lookup_signature (bonobo_config_get_long_with_default (config->db, path, -1, NULL));
g_free (path);
-
+
/* autogenerated signature */
path = g_strdup_printf ("/Mail/Accounts/identity_autogenerated_signature_%d", i);
id->auto_signature = bonobo_config_get_boolean_with_default (config->db, path, TRUE, NULL);
g_free (path);
-
+
/* get the source */
source = g_new0 (MailConfigService, 1);
@@ -823,7 +825,7 @@ config_read (void)
/* Format */
config->send_html = bonobo_config_get_boolean_with_default (config->db,
"/Mail/Format/send_html", FALSE, NULL);
-
+
/* Confirm Sending Unwanted HTML */
config->confirm_unwanted_html = bonobo_config_get_boolean_with_default (config->db,
"/Mail/Format/confirm_unwanted_html", TRUE, NULL);
@@ -847,6 +849,10 @@ config_read (void)
config->thread_list = bonobo_config_get_boolean_with_default (
config->db, "/Mail/Display/thread_list", FALSE, NULL);
+ p = getenv ("USER");
+ config->thread_subject = bonobo_config_get_boolean_with_default (
+ config->db, "/Mail/Display/thread_subject", p && (!strcmp (p, "fejj") || !strcmp (p, "notzed")) ? TRUE : FALSE, NULL);
+
config->show_preview = bonobo_config_get_boolean_with_default (
config->db, "/Mail/Display/preview_pane", TRUE, NULL);
@@ -946,7 +952,7 @@ config_read (void)
config->x_mailer_display_style = bonobo_config_get_long_with_default (
config->db, "/Mail/Display/x_mailer_display_style",
MAIL_CONFIG_XMAILER_NONE, NULL);
-
+
/* last filesel dir */
config->last_filesel_dir = bonobo_config_get_string (
config->db, "/Mail/Filesel/last_filesel_dir", NULL);
@@ -973,7 +979,7 @@ config_read (void)
label_defaults[i].color, NULL);
}
g_free (path);
-
+
config->week_start_day = bonobo_config_get_long_with_default(config->db, "/Calendar/Display/WeekStartDay", 1, NULL);
if (locale_supports_12_hour_format()) {
config->time_24hour = bonobo_config_get_boolean_with_default(config->db, "/Calendar/Display/Use24HourFormat", FALSE, NULL);
@@ -988,12 +994,12 @@ void
mail_config_write_account_sig (MailConfigAccount *account, gint i)
{
char *path;
-
+
mail_config_init ();
-
+
if (i == -1) {
GSList *link;
-
+
link = g_slist_find (config->accounts, account);
if (!link) {
g_warning ("Can't find account in accounts list");
@@ -1001,13 +1007,13 @@ mail_config_write_account_sig (MailConfigAccount *account, gint i)
}
i = g_slist_position (config->accounts, link);
}
-
+
/* id signatures */
path = g_strdup_printf ("/Mail/Accounts/identity_def_signature_%d", i);
bonobo_config_set_long (config->db, path, account->id->def_signature
? account->id->def_signature->id : -1, NULL);
g_free (path);
-
+
path = g_strdup_printf ("/Mail/Accounts/identity_autogenerated_signature_%d", i);
bonobo_config_set_boolean (config->db, path, account->id->auto_signature, NULL);
g_free (path);
@@ -1032,7 +1038,7 @@ mail_config_write (void)
Bonobo_ConfigDatabase_sync (config->db, &ev);
config_write_signatures ();
-
+
len = g_slist_length (config->accounts);
bonobo_config_set_long (config->db,
"/Mail/Accounts/num", len, NULL);
@@ -1133,7 +1139,7 @@ mail_config_write (void)
g_free (path);
mail_config_write_account_sig (account, i);
-
+
path = g_strdup_printf ("/Mail/Accounts/identity_autogenerated_signature_%d", i);
bonobo_config_set_boolean (config->db, path, account->id->auto_signature, NULL);
g_free (path);
@@ -1206,6 +1212,9 @@ mail_config_write_on_exit (void)
bonobo_config_set_boolean (config->db, "/Mail/Display/thread_list",
config->thread_list, NULL);
+ bonobo_config_set_boolean (config->db, "/Mail/Display/thread_subject",
+ config->thread_subject, NULL);
+
/* Show Message Preview */
bonobo_config_set_boolean (config->db, "/Mail/Display/preview_pane",
config->show_preview, NULL);
@@ -1419,6 +1428,18 @@ uri_to_key (const char *uri)
}
gboolean
+mail_config_get_thread_subject (void)
+{
+ return config->thread_subject;
+}
+
+void
+mail_config_set_thread_subject (gboolean thread_subject)
+{
+ config->thread_subject = thread_subject;
+}
+
+gboolean
mail_config_get_empty_trash_on_exit (void)
{
return config->empty_trash_on_exit;
diff --git a/mail/mail-config.h b/mail/mail-config.h
index bcf45e9ca8..95159faafe 100644
--- a/mail/mail-config.h
+++ b/mail/mail-config.h
@@ -179,6 +179,9 @@ void mail_config_set_empty_trash_on_exit (gboolean value);
gboolean mail_config_get_thread_list (const char *uri);
void mail_config_set_thread_list (const char *uri, gboolean value);
+gboolean mail_config_get_thread_subject (void);
+void mail_config_set_thread_subject (gboolean thread_subject);
+
gboolean mail_config_get_show_preview (const char *uri);
void mail_config_set_show_preview (const char *uri, gboolean value);
diff --git a/mail/message-list.c b/mail/message-list.c
index 14624f57f2..a719983588 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2673,7 +2673,8 @@ regen_list_regen (struct _mail_msg *mm)
if (m->tree)
camel_folder_thread_messages_apply(m->tree, showuids);
else
- m->tree = camel_folder_thread_messages_new(m->folder, showuids);
+ m->tree = camel_folder_thread_messages_new (m->folder, showuids,
+ mail_config_get_thread_subject ());
} else {
m->summary = g_ptr_array_new ();
for (i = 0; i < showuids->len; i++) {
/cgit.cgi/freebsd-ports-gnome/commit/www/squid30?h=gstreamer0.10-removal&id=1c148b2c601bc282f8d6c3d508e296a936df1e60'>- the patch is repacked at 2005-04-18 00:57, after maintainer submit PR 80028leeym2005-04-181-2/+2 * Integrate the following vendor patches as published onleeym2005-04-183-2/+62 * - Chase checksum of the updated pid_t patchahze2005-03-162-3/+3 * - Integrate the following vendor patches as published onahze2005-03-142-11/+47 * Integrate the following vendor patches as published onpav2005-03-092-1/+13 * - Update to 2.5.STABLE9pav2005-02-262-20/+5 * * Vendor patches:pav2005-02-212-1/+14 * - Update to 2.5-STABLE8sem2005-02-143-224/+7 * - Update header_parsing.patchpav2005-02-113-36/+3 * Integrate the following vendor patch as published onnectar2005-02-082-2/+20 * - Fix fetching.sem2005-02-012-3/+3 * - Integrate a vendor patch against a buffer overflow in the WCCP handling,sem2005-01-302-2/+5 * Sync follow-XFF with the latest vendor patch.krion2005-01-291-5/+5 * - Integrate vendor patches as published onsem2005-01-274-42/+213 * [Maintainer/security] www/squid: protect against HTTP resonse splitedwin2005-01-222-2/+11 * [Maintainer/Security] www/squid: integrate vendor patchesedwin2005-01-192-2/+11 * - Integrate vendor patches as published onsimon2005-01-132-4/+20 * Patch was rerolled because of some bug fixes.krion2004-12-291-2/+2 * Handle empty ACL definitions properly.krion2004-12-232-2/+5 * Integrate the following vendor patches as published onsem2004-12-092-2/+11 * - fix shutting down of helper applications on reconfigure orkrion2004-11-142-2/+8 * - Integrate the following vendor patches:sergei2004-10-272-2/+8 * - Integrate a vendor patch that prevents squid from consuming 100%sergei2004-10-193-15/+20 * - Update to 2.5-STABLE7; this release fixes a security issue regardingsergei2004-10-135-103/+26 * - Unbreak fetching squid again:sergei2004-10-112-3/+3 * - Unbreak fetching:sergei2004-10-072-2/+2 * Implement vendor patches for the following issues:sem2004-09-025-72/+93 * Integrate vendor patches for the following issues:sem2004-08-292-2/+11 * Fix grammatical and whitespace errors in squid.conf.default.krion2004-08-213-14/+20 * * Integrate a vendor patch for a possible DOS against the NTLMsem2004-08-202-2/+5 * The ldap_helpers patch has been updated again; see squid bugkrion2004-08-121-2/+2 * Integrate new vendor patches:krion2004-08-082-2/+8 * [Maintainer] www/squid: chase re-issued patch, unbreak fetchingedwin2004-07-302-3/+3 * - integrate a new version of the LDAP update patch, thekrion2004-07-292-8/+8 * Fix a bug that disallowed explicit unsetting of the squid_flags variable.ijliao2004-07-281-1/+1 * - Tweaks to RC scriptpav2004-07-262-12/+47 * Remove ldap_helpers.patchsem2004-07-251-2/+0 * Remove squid-2.5.STABLE6-ldap_helpers.patch until it is fixed.eik2004-07-231-1/+0 * The ldap_helpers patch has been rerolled (a missing returnkrion2004-07-222-3/+3 * Integrate the following vendor patches as published onkrion2004-07-202-9/+55 * Update to 2.5-STABLE6krion2004-07-152-113/+42 * Fix the patch that simulates the autotools bootstrap for thekrion2004-06-294-86/+24 * Correct the patch for the NTLM helper vulnerability accordingkrion2004-06-182-23/+12 * - Support systems where pf(4) must be installed from ports (seekrion2004-06-105-14/+42 * Add a couple of patches, including one for a buffer overflow in the NTLMdes2004-06-103-2/+95 * - correct report of available cache memory for cache sizes >2GBkrion2004-06-032-2/+23 * - Add new vendor patches:krion2004-05-022-2/+14 * - Fix plistkrion2004-04-292-6/+6 * - Add a vendor patch to fix an assertion failure that couldkrion2004-04-202-2/+5 * - integrate a vendor patch to fix a segfault that occured whenkrion2004-04-193-13/+23 * - Integrate a vendor patch that fixes an assertion caused bykrion2004-04-122-2/+5 * - Integrate two new vendor patches, please seekrion2004-04-104-13/+32 * - Integrate four new vendor patches applicable to FreeBSD, seepav2004-04-013-4/+26 * - update to squid-2.5.STABLE5, including two vendor patches issued so farsergei2004-03-178-209/+673 * - Integrate a new set of vendor patches, seeeik2004-02-244-167/+35 * - integrate a new patch from squid-cache.org, seesergei2004-02-174-16/+152 * - Update distinfo for the http_workarounds patch (again)sergei2004-02-024-116/+140 * The http_workarounds.patch has been updated, update distinfo accordingly.ijliao2004-01-201-1/+1 * - integrate another patch from squid-cache.org, seeijliao2004-01-193-11/+58 * - configure squid to run under a dedicated "squid" user by default; make usesergei2004-01-178-1017/+419 * - Integrate another patch for the LDAP authentication helpersergei2004-01-102-4/+6 * - Integrate a new patch issued by the squid development teamsergei2004-01-063-2/+16 * Change maintainer to Thomas-Martin Seck.will2004-01-051-1/+1 * More patches for squid, to keep up to date with the squid distribution.edwin2004-01-022-11/+13 * Add more patch files for www/squidedwin2003-12-302-2/+13 * Uncomment the lines I needed to test the port. Mea Culpa.edwin2003-12-281-2/+2 * [PATCH] www/squid: update to 2.5-STABLE4 (+ vendor patches)edwin2003-12-282-4/+56 * [PATCH] www/squid: update to 2.5 STABLE 4edwin2003-12-283-50/+29 * o Allow to use $SQUID_CONFIGURE_ARGS in /etc/make.conf for additionalkuriyama2003-12-131-1/+1 * .. add the missing file.adrian2003-07-271-0/+11 * Massive upgrade to 2.5-stable3. Thanks!adrian2003-07-274-30/+74 * Bring the squid-2.5 port up to 2.5.STABLE2.adrian2003-04-092-139/+3 * Add vendor patches:netchild2003-03-092-4/+139 * Clear moonlight beckons.ade2003-03-072-1/+1 * Grab the patch against squid24 from a PR..adrian2003-01-311-4/+8 * Document the configure argument for reverse SSL proxies.seanc2003-01-031-0/+2 * Removed double USE_PERL5edwin2002-11-051-1/+0 * Half of these ones missed yesterday while converting to USE_REINPLACE.edwin2002-11-051-0/+2 * PERL -> REINPLACEedwin2002-11-041-2/+3 * Update the port to squid-2.5.stable1.adrian2002-10-143-38/+831 * - Use MASTER_SITE_SUBDIR.knu2002-10-141-4/+6 * Update squid port to squid-2.4stable7.adrian2002-07-052-3/+3 * Update the squid24 port to Squid-2.4.STABLE6.adrian2002-03-222-3/+3 * Fix a typo, spotted by des.adrian2002-02-201-1/+1 * Update the port to squid-2.4stable4 .adrian2002-02-192-3/+3 * Update the port to squid-2.4STABLE3.adrian2001-12-032-3/+3 * Remove the RunCache stuff and let squid handle its own child maintainence.adrian2001-09-012-3/+8 * Misc. fixes:olgeni2001-08-311-37/+37 * * Update the port to use the newly-release squid-2.4STABLE2adrian2001-08-292-15/+6 * Make sure we don't delete mime.conf and squid.conf at packageadrian2001-06-182-3/+5 * PR: 26339adrian2001-04-102-2/+4 * Add the latest patch - a HTCP (cache control protocol, not a HTTP extension)adrian2001-04-032-2/+4 * Add some PATCHFILES to this port, and bump its PORTREVISION.adrian2001-03-312-1/+9 * -pthread --> ${PTHREAD_LIBS}sobomax2001-03-301-1/+1 * .. and update the Makefile to indicate that its my port, built by me. :)adrian2001-03-271-3/+3 * PR: 26059adrian2001-03-275-63/+64 * Try to remove ${LOCALBASE}/squid at deinstall time, if it is empty.olgeni2001-03-131-0/+3 * Fix typo: othervise -> otherwise.olgeni2001-02-191-1/+1 * Some spaces -> tabs for ports/www.olgeni2001-02-05