X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fpath.c;h=3dd552c146a2115b3ffe0a2d48392ed88a908b34;hb=5bfae54a3c9f2be059454d04875ba66fcbf1e6d4;hp=b3a8fff58ac81de6ace96c9c331ab243626fb267;hpb=097c84b61603c4a4c5837f3dcc09c30a1e751702;p=mmh diff --git a/sbr/path.c b/sbr/path.c index b3a8fff..3dd552c 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -100,7 +100,7 @@ expath(char *name, int type) char buffer[BUFSIZ]; if (type == TSUBCWF) { - /* @folder to +folder */ + /* convert TSUBCWF to TFOLDER */ snprintf(buffer, sizeof(buffer), "%s/%s", getfolder(FCUR), name); name = m_mailpath(buffer); @@ -166,7 +166,7 @@ expath(char *name, int type) /* -** +** Return a path name */ char * path(char *name, int type) @@ -189,5 +189,12 @@ path(char *name, int type) char * pluspath(char *name) { - return path(name+1, (*name == '+') ? TFOLDER : TSUBCWF); + switch (*name) { + case '+': + return path(name+1, TFOLDER); + case '@': + return path(name+1, TSUBCWF); + default: + return path(name, TFILE); + } }