[evolution-patches] Patch for bug 32278 - Account names in Mail summary (patch v2)
- From: Dave O <cxreg pobox com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Patch for bug 32278 - Account names in Mail summary (patch v2)
- Date: Mon, 23 Jun 2003 17:29:25 -0400 (EDT)
This patch addresses bug 32278 which points out that there is no way to
know what account a mailbox is associated with when listed on the Summary.
It prepends the account->name with " - " separating it from the mailbox
name. This could be changed to ":" as the original submitter suggested (I
preferred the hyphen).
FYI, this is the 2nd version of the patch I've posted to this list. The
first was moderated as I was not a list member yet, and also had a memory
leak. Thanks!
Dave O
diff -u -r1.56 my-evolution/e-summary-mail.c
--- my-evolution/e-summary-mail.c 9 Jun 2003 17:33:26 -0000 1.56
+++ my-evolution/e-summary-mail.c 19 Jun 2003 17:38:18 -0000
@@ -48,6 +48,9 @@
#include "e-util/e-path.h"
+#include "e-util/e-account.h"
+#include "mail/mail-config.h"
+
#define MAIL_IID "OAFIID:GNOME_Evolution_FolderInfo"
typedef struct _FolderStore {
@@ -103,13 +106,19 @@
GString *pretty_path;
const char *p, *previous_p;
char *retval;
+ EAccount *account;
+
+ account = mail_config_get_account_by_source_url(folder->physical_uri);
if (! summary->preferences->show_full_path)
- return g_strdup (folder->display_name);
+ return g_strconcat(account->name, " - ", folder->display_name, NULL);
g_assert (folder->path[0] == '/');
pretty_path = g_string_new ("");
+
+ g_string_append (pretty_path, account->name);
+ g_string_append (pretty_path, " - ");
previous_p = folder->path;
while (previous_p != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]