Changeset 1908:d0bc3eaccb0b for complete.c
- Timestamp:
- 2000-06-15 14:14:29 (8 years ago)
- Branch:
- HEAD
- Files:
-
- 1 modified
-
complete.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
complete.c
r1601 r1908 49 49 50 50 /* we can use '/' as a delimiter, imap_complete rewrites it */ 51 if (*s == '=' || *s == '+') 52 { 51 if (*s == '=' || *s == '+' || *s == '!') 52 { 53 if (*s == '!') 54 p = Spoolfile; 55 else 56 p = Maildir; 53 57 if (s[1]) 54 58 { 55 /* don't append '/' if Maildir is {host} only */56 if (mx_is_imap (NONULL ( Maildir)) && Maildir[strlen (Maildir)-1] == '}')57 snprintf (imap_path, sizeof (imap_path), "%s%s", Maildir, s+1);59 /* don't append '/' if Maildir/Spoolfile is {host} only */ 60 if (mx_is_imap (NONULL (p)) && p[strlen (p)-1] == '}') 61 snprintf (imap_path, sizeof (imap_path), "%s%s", p, s+1); 58 62 else 59 snprintf (imap_path, sizeof (imap_path), "%s/%s", NONULL ( Maildir),63 snprintf (imap_path, sizeof (imap_path), "%s/%s", NONULL (p), 60 64 s+1); 61 65 } 62 66 else 63 strfcpy (imap_path, NONULL( Maildir), sizeof(imap_path));67 strfcpy (imap_path, NONULL(p), sizeof(imap_path)); 64 68 } 65 69 else … … 70 74 #endif 71 75 72 if (*s == '=' || *s == '+' )76 if (*s == '=' || *s == '+' || *s == '!') 73 77 { 74 78 dirpart[0] = *s; 75 79 dirpart[1] = 0; 76 strfcpy (exp_dirpart, NONULL (Maildir), sizeof (exp_dirpart)); 80 if (*s == '!') 81 strfcpy (exp_dirpart, NONULL (Spoolfile), sizeof (exp_dirpart)); 82 else 83 strfcpy (exp_dirpart, NONULL (Maildir), sizeof (exp_dirpart)); 77 84 if ((p = strrchr (s, '/'))) 78 85 {
