From 08e6ede22adccfa0eb798135113b3e74dae0fa8d Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 3 May 2001 20:54:07 +0000 Subject: #include * message-list.c: #include * mail-ops.c (get_folderinfo_get): * subscribe-dialog.c (build_tree): Update for camel_store_get_folder_info prototype change. * mail-format.c (handle_text_plain_flowed): Improve more on the fix from the other day: the first level of indentation adds blank lines, but further levels don't... svn path=/trunk/; revision=9660 --- mail/ChangeLog | 12 ++++++++++++ mail/mail-format.c | 6 ++++-- mail/mail-ops.c | 10 ++++++---- mail/message-list.c | 3 ++- mail/subscribe-dialog.c | 2 +- 5 files changed, 25 insertions(+), 8 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 73f6b34ca7..1bb358058f 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,15 @@ +2001-05-03 Dan Winship + + * message-list.c: #include + + * mail-ops.c (get_folderinfo_get): + * subscribe-dialog.c (build_tree): Update for + camel_store_get_folder_info prototype change. + + * mail-format.c (handle_text_plain_flowed): Improve more on the + fix from the other day: the first level of indentation adds blank + lines, but further levels don't... + 2001-04-30 Dan Winship * folder-browser.c (folder_browser_destroy): Unhook event handlers diff --git a/mail/mail-format.c b/mail/mail-format.c index 81766f6206..5e5975f211 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -978,14 +978,14 @@ handle_text_plain_flowed (char *buf, MailDisplay *md) mail_html_write (md->html, md->stream, "", citation_color); + if (br_pending) + br_pending--; } while (quoting > prevquoting) { mail_html_write (md->html, md->stream, "
"); prevquoting++; } - if (br_pending) - br_pending--; while (quoting < prevquoting) { mail_html_write (md->html, md->stream, "
"); @@ -994,6 +994,8 @@ handle_text_plain_flowed (char *buf, MailDisplay *md) if (quoting == 0) { mail_html_write (md->html, md->stream, "
\n"); + if (br_pending) + br_pending--; } } diff --git a/mail/mail-ops.c b/mail/mail-ops.c index badb3b777f..05ab7cbf4b 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1039,11 +1039,13 @@ add_vtrash_info (CamelFolderInfo *info) static void get_folderinfo_get(struct _mail_msg *mm) { struct _get_folderinfo_msg *m = (struct _get_folderinfo_msg *)mm; - + guint32 flags = CAMEL_STORE_FOLDER_INFO_RECURSIVE; + + if (camel_store_supports_subscriptions (m->store)) + flags |= CAMEL_STORE_FOLDER_INFO_SUBSCRIBED; + camel_operation_register(mm->cancel); - m->info = camel_store_get_folder_info (m->store, NULL, FALSE, TRUE, - camel_store_supports_subscriptions (m->store), - &mm->ex); + m->info = camel_store_get_folder_info (m->store, NULL, flags, &mm->ex); if (m->info && m->info->url) add_vtrash_info (m->info); camel_operation_unregister(mm->cancel); diff --git a/mail/message-list.c b/mail/message-list.c index 0b6e7b8d56..b5921b7412 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -30,10 +30,11 @@ #include #include +#include #include -#include #include #include +#include #include #include "mail-config.h" diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c index d758334dd2..1f73a19669 100644 --- a/mail/subscribe-dialog.c +++ b/mail/subscribe-dialog.c @@ -750,7 +750,7 @@ build_tree (SubscribeDialog *sc, CamelStore *store) sc->store = store; sc->storage = mail_lookup_storage (sc->store); - sc->folder_info = camel_store_get_folder_info (sc->store, sc->search_top, TRUE, TRUE, FALSE, ex); + sc->folder_info = camel_store_get_folder_info (sc->store, sc->search_top, CAMEL_STORE_FOLDER_INFO_RECURSIVE | CAMEL_STORE_FOLDER_INFO_FAST, ex); if (camel_exception_is_set (ex)) { printf ("camel_store_get_folder_info failed\n"); -- cgit v1.2.3