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