diff -urN imap-2001a.RELEASE-CANDIDATE.2.orig/Makefile imap-2001a.RELEASE-CANDIDATE.2/Makefile --- imap-2001a.RELEASE-CANDIDATE.2.orig/Makefile Fri Oct 19 18:53:15 2001 +++ imap-2001a.RELEASE-CANDIDATE.2/Makefile Mon Oct 29 17:46:41 2001 @@ -211,8 +211,13 @@ # years. The Orthodox and Gregorian calendars diverge by 1 day for # gradually-increasing intervals, starting at 2800-2900, and becoming # permanent at 48,300. +# +# -DFORCENODOTFILES +# Useful if the above isn't set as it won't show dot files and dirs +# when browse all folders is selected from the imap client +# (by Marc MERLIN, http://marc.merlins.org/linux/uwimap/) -EXTRACFLAGS= +EXTRACFLAGS=-DFORCENODOTFILES # Extra linker flags (additional/alternative libraries, etc.) diff -urN imap-2001a.RELEASE-CANDIDATE.2.orig/src/osdep/unix/dummy.c imap-2001a.RELEASE-CANDIDATE.2/src/osdep/unix/dummy.c --- imap-2001a.RELEASE-CANDIDATE.2.orig/src/osdep/unix/dummy.c Fri Sep 28 17:57:21 2001 +++ imap-2001a.RELEASE-CANDIDATE.2/src/osdep/unix/dummy.c Tue Oct 30 11:22:43 2001 @@ -240,11 +240,15 @@ dummy_listed (stream,'/',dir,LATT_NOSELECT,contents); /* scan directory, ignore . and .. */ if (!dir || dir[strlen (dir) - 1] == '/') while (d = readdir (dp)) +#if FORCENODOTFILES + if (d->d_name[0] != '.') { +#else if (((d->d_name[0] != '.') || (((int) mail_parameters (NIL,GET_HIDEDOTFILES,NIL)) ? NIL : (d->d_name[1] && (((d->d_name[1] != '.') || d->d_name[2]) && strcmp (d->d_name+1,MXINDEXNAME+2))))) && (strlen (d->d_name) <= NETMAXMBX)) { +#endif /* see if name is useful */ if (dir) sprintf (tmp,"%s%s",dir,d->d_name); else strcpy (tmp,d->d_name);