aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-mail.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-08-23 06:31:53 +0800
committerIain Holmes <iain@src.gnome.org>2001-08-23 06:31:53 +0800
commit0af9d4d9864670f408b39cdec77e83c661e70584 (patch)
treed23bc8b9466bd7c7c9ae4c004f7a58deca2d5241 /my-evolution/e-summary-mail.c
parent1b92eea9f43d08e724c831ae6807b39b2ba73f4e (diff)
downloadgsoc2013-evolution-0af9d4d9864670f408b39cdec77e83c661e70584.tar
gsoc2013-evolution-0af9d4d9864670f408b39cdec77e83c661e70584.tar.gz
gsoc2013-evolution-0af9d4d9864670f408b39cdec77e83c661e70584.tar.bz2
gsoc2013-evolution-0af9d4d9864670f408b39cdec77e83c661e70584.tar.lz
gsoc2013-evolution-0af9d4d9864670f408b39cdec77e83c661e70584.tar.xz
gsoc2013-evolution-0af9d4d9864670f408b39cdec77e83c661e70584.tar.zst
gsoc2013-evolution-0af9d4d9864670f408b39cdec77e83c661e70584.zip
Fix the show_full_path bug
Set up the functions for better online/offline reporting. svn path=/trunk/; revision=12403
Diffstat (limited to 'my-evolution/e-summary-mail.c')
-rw-r--r--my-evolution/e-summary-mail.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/my-evolution/e-summary-mail.c b/my-evolution/e-summary-mail.c
index 81397e6498..05fe7cfc6b 100644
--- a/my-evolution/e-summary-mail.c
+++ b/my-evolution/e-summary-mail.c
@@ -60,24 +60,30 @@ e_summary_mail_get_html (ESummary *summary)
/* Work out what to do with folder names */
static char *
-make_pretty_foldername (const char *foldername)
+make_pretty_foldername (ESummary *summary,
+ const char *foldername)
{
char *pretty;
- if ((pretty = strrchr (foldername, '/'))) {
- return g_strdup (pretty + 1);
+ if (summary->preferences->show_full_path == FALSE) {
+ if ((pretty = strrchr (foldername, '/'))) {
+ return g_strdup (pretty + 1);
+ } else {
+ return g_strdup (foldername);
+ }
} else {
return g_strdup (foldername);
}
}
static void
-folder_gen_html (ESummaryMailFolder *folder,
+folder_gen_html (ESummary *summary,
+ ESummaryMailFolder *folder,
GString *string)
{
char *str, *pretty_name, *uri;
- pretty_name = make_pretty_foldername (folder->name);
+ pretty_name = make_pretty_foldername (summary, folder->name);
uri = g_strconcat ("evolution:/local", folder->name, NULL);
str = g_strdup_printf ("<tr><td><a href=\"%s\"><pre>%s</pre></a></td><td align=\"Left\"><pre>%d/%d</pre></td></tr>",
uri, pretty_name, folder->unread, folder->count);
@@ -108,7 +114,7 @@ e_summary_mail_generate_html (ESummary *summary)
g_string_append (string, "</a></b></dt><dd><table numcols=\"2\" width=\"100%\">");
for (p = mail->shown; p; p = p->next) {
- folder_gen_html (p->data, string);
+ folder_gen_html (summary, p->data, string);
}
g_string_append (string, "</table></dd></dl>");