2 ** getfolder.c -- get the current or default folder
4 ** This code is Copyright (c) 2002, by the authors of nmh. See the
5 ** COPYRIGHT file in the root directory of the nmh distribution for
6 ** complete copyright information.
13 ** Return the default (=inbox) or current folder.
14 ** E.g. `getfolder(FDEF)' usually returns ``inbox''.
17 getfolder(int wantcurrent)
22 (folder = context_find(pfolder)) && *folder != '\0') {
23 /* If wantcurrent, then try the current folder first */
26 } else if ((folder = context_find(inbox)) && *folder != '\0') {
27 /* try the Inbox profile entry */
31 /* return the compile time default */