X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fgetfolder.c;h=9a6b18bb55146eb76fed31083b2f0b85f06aa316;hb=ea9ebdabc3e32c94e906dfc1b8a85e78b1b68a77;hp=21db9a9828f2ad649461ecf4937c38293f672016;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/sbr/getfolder.c b/sbr/getfolder.c index 21db9a9..9a6b18b 100644 --- a/sbr/getfolder.c +++ b/sbr/getfolder.c @@ -1,9 +1,10 @@ - /* - * getfolder.c -- get the current or default folder - * - * $Id$ - */ +** getfolder.c -- get the current or default folder +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include @@ -11,22 +12,22 @@ char * getfolder(int wantcurrent) { - register char *folder; + register char *folder; - /* - * If wantcurrent == 1, then try the current folder first - */ - if (wantcurrent && (folder = context_find (pfolder)) && *folder != '\0') - return folder; + /* + ** If wantcurrent == 1, then try the current folder first + */ + if (wantcurrent && (folder = context_find(pfolder)) && *folder != '\0') + return folder; - /* - * Else try the Inbox profile entry - */ - if ((folder = context_find (inbox)) && *folder != '\0') - return folder; + /* + ** Else try the Inbox profile entry + */ + if ((folder = context_find(inbox)) && *folder != '\0') + return folder; - /* - * Else return compile time default. - */ - return defaultfolder; + /* + ** Else return compile time default. + */ + return defaultfolder; }