g_return_val_if_fail(dest != NULL, -1);
g_return_val_if_fail(msginfo != NULL, -1);
+ if (!msginfo->folder) {
+ g_warning(_("the folder of the message is not defined\n"));
+ return -1;
+ }
+
if (msginfo->folder == dest) {
g_warning(_("the src folder is identical to the dest.\n"));
return -1;
g_return_val_if_fail(dest != NULL, -1);
g_return_val_if_fail(msginfo != NULL, -1);
+ if (!msginfo->folder) {
+ g_warning(_("the folder of the message is not defined\n"));
+ return -1;
+ }
+
if (msginfo->folder == dest) {
g_warning(_("the src folder is identical to the dest.\n"));
return -1;
static gboolean mh_is_maildir_one(const gchar *path, const gchar *dir)
{
- char *entry;
+ gchar *entry;
gboolean result;
entry = g_strconcat(path, G_DIR_SEPARATOR_S, dir, NULL);