Commit 0c819952 0c81995234b9467192aae61b7c4a71792c24e9ee by Sergey Poznyakoff

Bugfix

1 parent fc4b1c93
...@@ -58,8 +58,10 @@ display_message (message_t mesg, msgset_t *msgset, void *arg) ...@@ -58,8 +58,10 @@ display_message (message_t mesg, msgset_t *msgset, void *arg)
58 size_t lines = 0; 58 size_t lines = 0;
59 struct decode_closure *closure = arg; 59 struct decode_closure *closure = arg;
60 int pagelines = util_get_crt (); 60 int pagelines = util_get_crt ();
61 attribute_t attr = NULL;
61 62
62 if (util_isdeleted (mesg)) 63 message_get_attribute (mesg, &attr);
64 if (attribute_is_deleted (attr))
63 return 1; 65 return 1;
64 66
65 message_lines (mesg, &lines); 67 message_lines (mesg, &lines);
......
...@@ -231,7 +231,7 @@ mu_charset_lookup (char *lang, char *terr) ...@@ -231,7 +231,7 @@ mu_charset_lookup (char *lang, char *terr)
231 for (p = langtab; p->lang; p++) 231 for (p = langtab; p->lang; p++)
232 if (strcasecmp (p->lang, lang) == 0 232 if (strcasecmp (p->lang, lang) == 0
233 && (terr == NULL 233 && (terr == NULL
234 || !p->terr == NULL 234 || p->terr == NULL
235 || !strcasecmp (p->terr, terr) == 0)) 235 || !strcasecmp (p->terr, terr) == 0))
236 return p->charset; 236 return p->charset;
237 return NULL; 237 return NULL;
......