Changeset 842:e20c4487dc39 for complete.c
- Timestamp:
- 1999-02-09 12:50:36 (10 years ago)
- Branch:
- HEAD
- Files:
-
- 1 modified
-
complete.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
complete.c
r703 r842 33 33 { 34 34 char *p; 35 DIR *dirp ;35 DIR *dirp = NULL; 36 36 struct dirent *de; 37 37 int i ,init=0; … … 86 86 dirpart[0] = 0; 87 87 strfcpy (filepart, s, sizeof (filepart)); 88 dirp = opendir ("."); 88 #ifdef USE_IMAP 89 if (s[0] != '{') 90 #endif 91 dirp = opendir ("."); 89 92 } 90 93 } … … 92 95 if (dirp == NULL) 93 96 { 97 #ifdef USE_IMAP 98 /* If we are trying to complete an IMAP folder, it will start with { 99 * in which case, we just return 0 at this point. Eventually, we 100 * might complete the actually folder name from the server 101 */ 102 if ((s[0] == '{') || (exp_dirpart[0] == '{')) 103 return 0; 104 #endif 94 105 dprint (1, (debugfile, "mutt_complete(): %s: %s (errno %d).\n", exp_dirpart, strerror (errno), errno)); 95 106 return (-1);
