diff options
author | Not Zed <NotZed@Ximian.com> | 2002-06-17 19:29:10 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-06-17 19:29:10 +0800 |
commit | e8a1d5b72daaba280a5e973969477d21a6854ab1 (patch) | |
tree | c23677b50de2f3b8e19144bc035d28c2bbff2f23 /mail/message-list.c | |
parent | 6467816bac9c0731a161d391076a4e8c4f414cb2 (diff) | |
download | gsoc2013-evolution-e8a1d5b72daaba280a5e973969477d21a6854ab1.tar.gz gsoc2013-evolution-e8a1d5b72daaba280a5e973969477d21a6854ab1.tar.zst gsoc2013-evolution-e8a1d5b72daaba280a5e973969477d21a6854ab1.zip |
If we dont support searching, dont try to.
2002-06-17 Not Zed <NotZed@Ximian.com>
* message-list.c (regen_list_regen): If we dont support searching,
dont try to.
svn path=/trunk/; revision=17208
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 94a9d3389c..e868744d3d 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -2454,7 +2454,10 @@ regen_list_regen (struct _mail_msg *mm) int i; /* if we have hidedeleted on, use a search to find it out, merge with existing search if set */ - if (m->hidedel) { + if (!camel_folder_has_search_capability(m->folder)) { + /* if we have no search capability, dont let search or hide deleted work */ + uids = camel_folder_get_uids(m->folder); + } else if (m->hidedel) { char *expr; if (m->search) { @@ -2474,7 +2477,7 @@ regen_list_regen (struct _mail_msg *mm) return; /* perform hiding */ - if (m->hideexpr) { + if (m->hideexpr && camel_folder_has_search_capability(m->folder)) { uidnew = camel_folder_search_by_expression (m->ml->folder, m->hideexpr, &mm->ex); /* well, lets not abort just because this faileld ... */ camel_exception_clear (&mm->ex); |