Completely reworked the path convertion functions
[mmh] / sbr / getfolder.c
diff --git a/sbr/getfolder.c b/sbr/getfolder.c
deleted file mode 100644 (file)
index fc87e1e..0000000
+++ /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 <h/mh.h>
-
-
-/*
-** 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;
-       }
-}