Show
Ignore:
Timestamp:
1999-02-09 12:50:36 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Brandon's IMAP clean-up; new czech translation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • complete.c

    r703 r842  
    3333{ 
    3434  char *p; 
    35   DIR *dirp; 
     35  DIR *dirp = NULL; 
    3636  struct dirent *de; 
    3737  int i ,init=0; 
     
    8686      dirpart[0] = 0; 
    8787      strfcpy (filepart, s, sizeof (filepart)); 
    88       dirp = opendir ("."); 
     88#ifdef USE_IMAP 
     89      if (s[0] != '{') 
     90#endif 
     91        dirp = opendir ("."); 
    8992    } 
    9093  } 
     
    9295  if (dirp == NULL) 
    9396  { 
     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 
    94105    dprint (1, (debugfile, "mutt_complete(): %s: %s (errno %d).\n", exp_dirpart, strerror (errno), errno)); 
    95106    return (-1);