aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-11-01 04:07:17 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-11-01 04:07:17 +0000
commit5136f54d0566e8a4695dcc100043c9bfec2443a5 (patch)
tree47ccd45698a041a86e4e63855e664de48435d3c3 /src/main.c
parent1ca8df113fdf103c457f5b31cce5909e6bc85d00 (diff)
added the option 'Open inbox on startup'.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1260 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 7023ea6f..b6c54ec8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1108,6 +1108,14 @@ static void remote_command_exec(void)
mainwin = main_window_get();
+ if (prefs_common.open_inbox_on_startup) {
+ FolderItem *item;
+ item = cur_account && cur_account->inbox
+ ? folder_find_item_from_identifier(cur_account->inbox)
+ : folder_get_default_inbox();
+ folderview_select(mainwin->folderview, item);
+ }
+
if (cmd.receive_all)
inc_all_account_mail(mainwin, FALSE);
else if (prefs_common.chk_on_startup)