X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffolder_read.c;h=cdbf344d18d72af97bc7018149c8d2b7fdccac92;hb=1f958f791cd9ee06e1de07c348555c920772af67;hp=222b490f27198ed09dbf248688fb28b621e0e858;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 222b490..cdbf344 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -30,7 +30,7 @@ folder_read(char *name) struct dirent *dp; DIR *dd; - name = m_mailpath(name); + name = getcpy(toabsdir(name)); if (!(dd = opendir(name))) { free(name); return NULL; @@ -99,31 +99,32 @@ folder_read(char *name) } else { switch (dp->d_name[0]) { - case '.': - case ',': + case '.': + case ',': #ifdef MHE - case '+': + case '+': #endif /* MHE */ + continue; + + default: + /* + ** skip any files beginning with + ** backup prefix + */ + if (!strncmp(dp->d_name, backup_prefix, + prefix_len)) continue; - default: - /* - ** skip any files beginning with - ** backup prefix - */ - if (!strncmp(dp->d_name, backup_prefix, prefix_len)) - continue; - - /* skip the altmsg link file */ - if (!strcmp(dp->d_name, altmsglink)) - continue; - - /* - ** indicate that there are other - ** files in folder - */ - set_other_files(mp); + /* skip the altmsg link file */ + if (!strcmp(dp->d_name, altmsglink)) continue; + + /* + ** indicate that there are other + ** files in folder + */ + set_other_files(mp); + continue; } } }