X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fgetfolder.c;fp=sbr%2Fgetfolder.c;h=0000000000000000000000000000000000000000;hp=fc87e1e87cb2a76b9a931b435cf7101565ce8e9e;hb=d39e2c447b0d163a5a63f480b23d06edb7a73aa0;hpb=6e8aba3714fe8ffc21dbb75ea9efdc41ab87b07f diff --git a/sbr/getfolder.c b/sbr/getfolder.c deleted file mode 100644 index fc87e1e..0000000 --- a/sbr/getfolder.c +++ /dev/null @@ -1,34 +0,0 @@ -/* -** 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 - - -/* -** Return the default (=inbox) or current folder. -** E.g. `getfolder(FDEF)' usually returns ``inbox''. -*/ -char * -getfolder(int wantcurrent) -{ - char *folder; - - if (wantcurrent && - (folder = context_find(pfolder)) && *folder != '\0') { - /* If wantcurrent, then try the current folder first */ - return folder; - - } else if ((folder = context_find(inbox)) && *folder != '\0') { - /* try the Inbox profile entry */ - return folder; - - } else { - /* return the compile time default */ - return defaultfolder; - } -}