mirror of https://github.com/djcb/mu.git
* mu-msg-flags: better logging
This commit is contained in:
parent
498c6418df
commit
f28cb97a5d
|
@ -20,6 +20,7 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "mu-util.h"
|
||||||
#include "mu-msg-flags.h"
|
#include "mu-msg-flags.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -140,11 +141,11 @@ check_msg_type (const char* path, char **info)
|
||||||
|
|
||||||
if (g_str_has_suffix (dir, G_DIR_SEPARATOR_S "cur")) {
|
if (g_str_has_suffix (dir, G_DIR_SEPARATOR_S "cur")) {
|
||||||
if (!*info)
|
if (!*info)
|
||||||
g_message ("'cur' file, but no info part: %s", path);
|
g_debug ("'cur' file, but no info part: %s", path);
|
||||||
mtype = MSG_TYPE_CUR;
|
mtype = MSG_TYPE_CUR;
|
||||||
} else if (g_str_has_suffix (dir, G_DIR_SEPARATOR_S "new")) {
|
} else if (g_str_has_suffix (dir, G_DIR_SEPARATOR_S "new")) {
|
||||||
/* if (*info) */
|
if (*info)
|
||||||
/* g_message ("'new' file, ignoring info part: %s", path); */
|
g_debug ("'new' file, ignoring info part: %s", path);
|
||||||
mtype = MSG_TYPE_NEW;
|
mtype = MSG_TYPE_NEW;
|
||||||
} else
|
} else
|
||||||
mtype = MSG_TYPE_OTHER; /* file has been added explicitly as
|
mtype = MSG_TYPE_OTHER; /* file has been added explicitly as
|
||||||
|
|
Loading…
Reference in New Issue