]>
diplodocus.org Git - nmh/blob - sbr/getfolder.c
3 * getfolder.c -- get the current or default folder
7 * This code is Copyright (c) 2002, by the authors of nmh. See the
8 * COPYRIGHT file in the root directory of the nmh distribution for
9 * complete copyright information.
16 getfolder(int wantcurrent
)
18 register char *folder
;
21 * If wantcurrent == 1, then try the current folder first
23 if (wantcurrent
&& (folder
= context_find (pfolder
)) && *folder
!= '\0')
27 * Else try the Inbox profile entry
29 if ((folder
= context_find (inbox
)) && *folder
!= '\0')
33 * Else return compile time default.