diff options
author | Jason Leach <jleach@ximian.com> | 2001-07-13 02:28:03 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-07-13 02:28:03 +0800 |
commit | 74042027db990bf5fc420a70076281221a30cfcf (patch) | |
tree | a970cc906d7a3949c3774018c512c6de1ee5e6cb | |
parent | 1bcf8899a0758f5d5e0bc7ccec105699cb073072 (diff) | |
download | gsoc2013-evolution-74042027db990bf5fc420a70076281221a30cfcf.tar.gz gsoc2013-evolution-74042027db990bf5fc420a70076281221a30cfcf.tar.zst gsoc2013-evolution-74042027db990bf5fc420a70076281221a30cfcf.zip |
Only blank the mail display if the message being viewed is one of those to
2001-07-12 Jason Leach <jleach@ximian.com>
* mail-callbacks.c (expunge_folder): Only blank the mail display
if the message being viewed is one of those to be expunged. Bug
#4030.
svn path=/trunk/; revision=11052
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 63f4be97a7..d738f076bd 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,11 @@ 2001-07-12 Jason Leach <jleach@ximian.com> + * mail-callbacks.c (expunge_folder): Only blank the mail display + if the message being viewed is one of those to be expunged. Bug + #4030. + +2001-07-12 Jason Leach <jleach@ximian.com> + * mail-config.c (config_read): Should be saving the 'identity_html_signature' and 'identity_has_html_signature" keys in the /Mail/Accounts prefix (with the rest of the per-account diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 899daf6b4f..f67f1a08a1 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1634,7 +1634,14 @@ expunge_folder (BonoboUIComponent *uih, void *user_data, const char *path) if (fb->folder && (fb->expunging == NULL || fb->folder != fb->expunging)) { - mail_display_set_message(fb->mail_display, NULL); + CamelMessageInfo *info; + + /* Only blank the mail display if the message being + viewed is one of those to be expunged */ + info = camel_folder_get_message_info (fb->folder, fb->loaded_uid); + if (info->flags & CAMEL_MESSAGE_DELETED) + mail_display_set_message (fb->mail_display, NULL); + fb->expunging = fb->folder; mail_expunge_folder(fb->folder, expunged_folder, fb); } |