X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fgetfolder.c;h=11e2b212298c109ea14973d86bd96e6dba467e6b;hb=337338b404931f06f0db2119c9e145e8ca5a9860;hp=21db9a9828f2ad649461ecf4937c38293f672016;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/sbr/getfolder.c b/sbr/getfolder.c index 21db9a9..11e2b21 100644 --- a/sbr/getfolder.c +++ b/sbr/getfolder.c @@ -1,8 +1,9 @@ - /* * getfolder.c -- get the current or default folder * - * $Id$ + * 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; }