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 getfolder(int wantcurrent)
15 register char *folder;
18 * If wantcurrent == 1, then try the current folder first
20 if (wantcurrent && (folder = context_find (pfolder)) && *folder != '\0')
24 * Else try the Inbox profile entry
26 if ((folder = context_find (inbox)) && *folder != '\0')
30 * Else return compile time default.