X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/7895cbd715476bb471e8261761e7a9452b7166c6..12e3e0754ce067f30b3cdf7378ddbbaadff1ec7c:/sbr/path.c diff --git a/sbr/path.c b/sbr/path.c index ecd2eb81..a6568db8 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -5,8 +5,11 @@ * complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "ssequal.h" +#include "getfolder.h" +#include "path.h" +#include "h/utils.h" #include "m_maildir.h" #define CWD "./" @@ -22,12 +25,16 @@ static char *pwds; static char *expath(char *,int); static void compath(char *); + +/* Return value must be free(3)'d. */ char * pluspath(char *name) { return path(name + 1, *name == '+' ? TFOLDER : TSUBCWF); } + +/* Return value must be free(3)'d. */ char * path(char *name, int flag) { @@ -42,6 +49,7 @@ path(char *name, int flag) } +/* Return value must be free(3)'d. */ static char * expath (char *name, int flag) {