X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fgetfolder.c;h=9a6b18bb55146eb76fed31083b2f0b85f06aa316;hb=64d621d6806432dabe5bd62282f17027bb08d418;hp=6c6d26728d162e0907b4d2dbce4e1bcdab9e091e;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/sbr/getfolder.c b/sbr/getfolder.c index 6c6d267..9a6b18b 100644 --- a/sbr/getfolder.c +++ b/sbr/getfolder.c @@ -1,11 +1,10 @@ - /* - * 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. - */ +** 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 @@ -13,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; }