diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-05-10 03:48:56 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-05-10 03:48:56 +0000 |
commit | 6b2af6b8b67b7d0abc2d19a89c895f64239487f3 (patch) | |
tree | bd51c844e1227e2ec5659d3c77b4c22d55c51b16 /libsylph | |
parent | 3be7497b4d410c1097bb19bcb7acfc10559585e1 (diff) |
implemented '--open' command line option which open messages specified with command-line in new window.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1686 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/mh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsylph/mh.c b/libsylph/mh.c index 67be7a7a..386d7557 100644 --- a/libsylph/mh.c +++ b/libsylph/mh.c @@ -331,7 +331,8 @@ static gchar *mh_fetch_msg(Folder *folder, FolderItem *item, gint num) if (item->last_num < 0) return NULL; } - g_return_val_if_fail(num <= item->last_num, NULL); + if (num > item->last_num) + return NULL; path = folder_item_get_path(item); file = g_strconcat(path, G_DIR_SEPARATOR_S, itos(num), NULL); |